OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 25 May 2004, 00:39:14
-
Hi.
I am making a mission where a Resistnce Squad has just destroyed a Govt Convoy and are on the run. But their Escape route happens to be the way they came in as well.
What I want to happen is for a Trigger to activate when the Resi Squad activates it AFTER the Convoy has been destroyed, so the Trigger must be activated by the Resistance squad ONLY if all of the units in the Convoy are dead. Anyway of doing this?
Cheers.
Olphy.
-
well, if there isn't any other threat to the convoy u could just use this trigger setup:
condition: (not (alive c1)) && (not (alive c2)) && (not (alive c3))
activation: hint "Convoy Destroyed"; t1=true
c1= name of convoy car/convoy ai bla bla, just name what ever it is u want the trigger to wait on.
this trigger will wait for c1, c2 and c3's death or destruction before activating.
on the second trigger do this...
resistance/ present
condition: this && t1
activation:
the trigger will not go off untill the named parts of the convoy is destroyed AND resistance peeps set off the second trigger. U can change "t1" to anything u want, just make sure u change it for both triggers.
hope this helps :)
-
Cheers m8. ;)