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
) »
kill a trigger
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: kill a trigger (Read 736 times)
0 Members and 1 Guest are viewing this topic.
david-p
Guest
kill a trigger
«
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
Logged
Bremmer
Guest
Re:kill a trigger
«
Reply #1 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
Logged
david-p
Guest
Re:kill a trigger
«
Reply #2 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
almost
exactly 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
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
) »
kill a trigger
Top of page