OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: david-p on 07 Nov 2002, 14:54:50

Title: kill a trigger
Post by: david-p on 07 Nov 2002, 14:54:50
simple enough.. a script can be called from one of 6 near-identical triggers. all i want is that script to be called once only, ie once one trigger has fired, all the rest need to become inactive.
please help i got a mental block!
thanks. dave
Title: Re:kill a trigger
Post by: Bremmer on 07 Nov 2002, 15:01:17
Hello

First set up your trigger conditions how you want them. Now tag this code on the end of your condition:

and not activated

In your init file or an init line somewhere define activated = false.
In the On Activation box of each trigger add the statement

; activated = true

to whatever else you had in there.
Now only the first trigger will work (unless you reset the parameter activated = false).

Cheers
Title: Re:kill a trigger
Post by: david-p on 07 Nov 2002, 23:08:14
arg!!!! i cant possibly state how infuriated i am!
i read your post, and thinks to myself, ive done almostexactly that already. but, what the hey, you spent the time writing i should try it. so chuff me its only gone and worked. thanks again
dave