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 / I need help understanding globalvar

Author
Message
Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 10th Mar 2009 13:26
I attached the script below to a trigger zone.
When I test the level, all the code is immediately executed.
Why?
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th Mar 2009 14:09
Brian,

All of the code is executed because there are no conditions for the zone to check. It is dynamic and will execute the code as long as no conditions are stopping it.

If you want the code to execute when the player enters the zone, then include the plrwithinzone=1 condition in the state=0 line.

Best.

Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 10th Mar 2009 14:13
Thank you, its working now.

Login to post a reply

Server time is: 2024-11-24 21:31:51
Your offset time is: 2024-11-24 21:31:51