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 / Dark area script

Author
Message
Indiana Jones
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: In Indy\'s office
Posted: 18th Feb 2009 13:08
Can someone please make a script where when the player walks in it, it is pitch black?

I love making games but I like searching for artifacts more.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th Feb 2009 14:08 Edited at: 18th Feb 2009 14:22
Taken from fpsFREE.com



Assign this to a zone and make it the size of the area you want to be dark.

The first state=0 line is for when the player is not in the zone. You should set the values to whatever your game settings are so that when the player leaves the zone, the lighting goes back to what it was.

Also, if you only wanted it to happen once you could destroy the zone after one use.



In this case you would set the values of state=1 to whatever your game settings are so that when the player leaves the zone, the lighting goes back to what it was.

Best.

Indiana Jones
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: In Indy\'s office
Posted: 18th Feb 2009 14:38
The Fps free one wasn't what I wanted, I want a dark area but you can see a little bit and I want it to always be there instead of walking in their to activate it.

I enjoy making games but I like searching for artifacts more.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th Feb 2009 15:15
Then you don't need a script. You need to make your level dark, and only place lights outside of the dark area.

Best.

Login to post a reply

Server time is: 2024-11-24 19:44:18
Your offset time is: 2024-11-24 19:44:18