Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
how do i deactivate a trigger with a script?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: how do i deactivate a trigger with a script? (Read 1390 times)
0 Members and 1 Guest are viewing this topic.
tai mai shu
Guest
how do i deactivate a trigger with a script?
«
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
Logged
Black_Feather
Former Staff
I'll never forget you Daisey.
Re:how do i deactivate a trigger with a script?
«
Reply #1 on:
24 Aug 2002, 04:23:31 »
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
Logged
tai mai shu
Guest
Re:how do i deactivate a trigger with a script?
«
Reply #2 on:
24 Aug 2002, 06:15:41 »
ah. thats ingenious! im a newb, and didnt realize that variables used in triggers could be communicated to scripts. hmm, cool. thanks a lot!
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
how do i deactivate a trigger with a script?
Top of page