Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Need advice getting lights working

Author
Message
Dragon slayer
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 28th Jul 2012 03:48
I have searched forum and tried a few things I read and I can't get a basic light working.

I am trying to work it with a switch, the switch works but does not turn the light on or off. I am using light1 and script light1. For the switch I have lightswitch2 and for the script it is switch.fpi

I have tied a lot of different things and can't get the light to turn on and off. I have put light1 in the if used on the switch and also tried switch in the if used on the light, I have also turned the ambiance down to almost nothing but I can't see the light work!

Any help would be great!!!
Thanks
Dragonslayer
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 28th Jul 2012 04:22
Is the light itself dynamic? Only dynamic entitys respond to scripts.

Dragon slayer
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 28th Jul 2012 04:33
I meant to say that in my post yes it is and so is the switch. Only dynamic lights can be turned on and off and static lights are just for show?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 28th Jul 2012 08:22
Hey Dragon Slayer. Just a thought but are you using a light "Marker" or the Light1 entity from the scifi folder?
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 28th Jul 2012 10:32
Make your light switch a dynamic entity and place it on the wall somewhere.

Make the light dynamic like some have said and make the main AI of the zone lightoff.fpi.

That should work. The lightoff.fpi script should be included with the stock of FPS Creator.

If not, here is the script.



Hope this helps! Have a good weekend and good luck.

Cheers and beers ,

King Cobra
Dragon slayer
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 30th Jul 2012 01:16
this didn't work for me. I put the switch right under the light so I could see if it goes on and off and it does not.

In the switch properties I also put the name of the light in the if used like the tutorial in the community guide says. I also tried it before I changed any of the properties except changing it to dynamic.
Dark Frager
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 30th Jul 2012 18:11
Do this:

Place a switch.

In the ifUsed field type the name of your light (Keep it simple for example Light1)

Place a light, make sure it's dynamic.
Set the main script to "lightoff.fpi"

This should work, it did for me.

Make sure in the "Name" field of the light it says Light1

Hope this helped

Putting the fun back into Fungus since 1984.
Dragon slayer
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 1st Aug 2012 23:41
I have done all of this and still can't make the light work.

Ncmaco, no light marker. I am using light2 from the sifi menu
Dark Frager
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 2nd Aug 2012 09:05 Edited at: 2nd Aug 2012 09:11
I get you . You cannot use an entity or it will not work. You HAVE to use a light marker from the "Markers" tab. If you need the entity to be lit up, simply put the marker under the entity.

Edit: Attached image.

Putting the fun back into Fungus since 1984.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 21:21:25
Your offset time is: 2024-11-23 21:21:25