OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Yasirotta on 10 Aug 2008, 20:36:36

Title: Disable trigger, or script ?
Post by: Yasirotta on 10 Aug 2008, 20:36:36
If i have trigger for one guy, and one script for other using distance commands. So if these guys gets killed, how i can disable their triggers or scripts ?
Title: Re: Disable trigger, or script ?
Post by: Gcfungus on 10 Aug 2008, 22:05:17
It depends how you do it. If you use a trigger then there shouldn't be a problem if it's activated on present, if it's not present then you could put in the init field:
Code: [Select]
this && man1 aliveIf it's a repeating script, then you could simply put a breaker at one or multiple places (depending on how many times it loops). eg.
Code: [Select]
?!(man1 alive):exit
Should do the trick, if it's neither of these then you will need to explain further. These may not actually work, but should do  ;)
-=GC=-Fungus1999
Title: Re: Disable trigger, or script ?
Post by: Yasirotta on 10 Aug 2008, 22:20:44
Yeah, seems that it does it.