OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: aazell on 15 Jul 2003, 03:00:15

Title: How do I remove a trigger during a game?
Post by: aazell on 15 Jul 2003, 03:00:15
Hi

I've got a radar set up on my mission and I want to deactivate the radar trigger when the teams boat are destroyed.

How can I do this?

I've tried using triggername = null but that doesn't work.

aaz
Title: Re:How do I remove a trigger during a game?
Post by: MPKING on 15 Jul 2003, 07:28:20
If you don't need the trigger again, you can make another trigger and type in activation field "deleteVehicle triggername" without the quote's.
Title: Re:How do I remove a trigger during a game?
Post by: Sui on 15 Jul 2003, 09:37:50
...or you could just throw this onto the end of your trigger's condition field:

...and (alive boat)

So when boat is destroyed, the trigger will de-activate (or not activate... however you want to look at it ;)).

No need to muck around trying to delete triggers or anything like that...
Title: Re:How do I remove a trigger during a game?
Post by: MPKING on 15 Jul 2003, 10:10:48
lol.. i guess that's the clever way to do it. ::)
Title: Re:How do I remove a trigger during a game?
Post by: aazell on 15 Jul 2003, 11:14:16
Thanks Guys. All very helpful.
I tried delete vehicle and it doesn't seem to work for triggers.
I'll try Sui's way.
aaz