
Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Jan 2, 2009 02:12 AM
Msg. 1 of 5
Is there a way I can cause a continuous scripts commands to be stopped?
|
|
|

DarkZealot
Joined: Jan 1, 2008
Time management: 40% Xbox, 30% PC, 30% Skating
|
Posted: Jan 2, 2009 09:08 AM
Msg. 2 of 5
If you had a statement checking to see if a variable was 1, then somewhere else in the script you set that variable to 0, it should work.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Jan 2, 2009 11:57 AM
Msg. 3 of 5
Hm...It is a continuous effect script, I have explosions repeatedly going on at certain flags. No variables...could I add that? Edited by Officer egg on Jan 2, 2009 at 11:58 AM
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Jan 2, 2009 12:29 PM
Msg. 4 of 5
Yep. Just do something like this: (global boolean effects_on 0) ; the variable, effects off at first
(script whatever whatever (set effects_on 1) ; in whatever script necessary, set this variable to 1 to turn on the continuous effects script )
(script continuous your_effects_script (if (= effects_on 1) (begin ;; effects commands here ) ) )
(script whatever whatever (set effects_on 0) ; in whatever script necessary, set this variable to 0 to turn off the continuous effects script when finished )
Just make sure to put the variable on the very top of your .hsc file, above all other scripts. This is just a guideline so you know what commands to use.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Jan 2, 2009 02:00 PM
Msg. 5 of 5
Thanks!
|
|
|