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 / Changing light color (Switch)

Author
Message
ravenvince2
11
Years of Service
User Offline
Joined: 13th Jan 2013
Location:
Posted: 28th Feb 2013 04:32
I don't know if this have been posted before. I have a script of a red light flashing on my map. The player has to hit a switch in a wall to open the door.

The question is, I want that red flashing light to turn solid green when the switch is pressed and the red flashing light to stop. How would I do this. I know its a script.
Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 28th Feb 2013 06:17
The actions you are looking for are:

lightred=x,lightgreen=x,lightblue=x

So what you would want to put in for a green coloured light:

lightred=0,lightgreen=250,lightblue=0

I'm not sure if 250 or 255 is max, but anyway. I'm sure you can merge that into your script.

- An Instinctive Fear IndieDB page, download demo today!

Login to post a reply

Server time is: 2024-11-23 16:54:36
Your offset time is: 2024-11-23 16:54:36