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 / Script for fog only in a trigger zone

Author
Message
sgrunt
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 17th Feb 2007 14:56
i'm really a newbie in FPS, only 3 days using it, but i wanna help who needs fog.
This added line of code allows fog to appear or disappear if the player is in a particular area (trigger zone).
For example i've a garden, and i want that fog comes out only when the player is in the garden, and disappear when player is outside the garden.
Make a triggerzone to cover the garden (or a room, or whatever) and use this main script:



;Header

desc = Activates/Disactivates Fog when in Zone.

;Triggers

:state=0,plrwithinzone=1:fog=1,fogred=255,foggreen=255,fogblue=255:state=0
:state=0,plrwithinzone=0:fog=0:state=0
Cyber panda
17
Years of Service
User Offline
Joined: 15th Feb 2007
Location: Yoncalla
Posted: 17th Feb 2007 16:15 Edited at: 17th Feb 2007 18:55
Wow, Thanks.

Your signature has been erased by a mod

Login to post a reply

Server time is: 2024-11-27 04:01:46
Your offset time is: 2024-11-27 04:01:46