OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tai mai shu on 24 Aug 2002, 04:10:06
-
lets say i runa script that checks if a unit is damaged,heals it, and keeps looping. welll, how can i deactivate it within the in-game editor, using triggers or waypoint??!?! thanks in advance for any help.
tai mai shu
-
you need to put a condition in the script like this
#loop
blahblahblah
?stopscript : goto "end"
goto "loop"
#end
exit
then in the trigger put
stopscript = true
-
ah. thats ingenious! im a newb, and didnt realize that variables used in triggers could be communicated to scripts. hmm, cool. thanks a lot!