OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ice84 on 03 Jul 2006, 20:00:12

Title: Trigger to end the mission once a tank is blown up
Post by: Ice84 on 03 Jul 2006, 20:00:12
Hey all, soz its me again, just one more thing quickly before you throw the noob sticks at me;
I have a black op guy who has destroyed a tank being serviced (player controlled); once the tank is knocked out I need him to retreat to the woods into
a trigger that ends the mission once he enters the trigger radius, but that it will only end the mission if the tank is knocked out (i.e if he took a detour and wandered into the trigger it wont end the mission unless the tank is destroyed).

Anyone know?? ??? ???

Many thanks!!
Title: Re: Trigger to end the mission once a tank is blown up
Post by: Seven on 03 Jul 2006, 20:26:39
Name your tank tank1 and set up your end trigger that's activated by ur guy.

In the condition field of the end trigger put:
Code: [Select]
this && !(alive tank1)

nothing more to it  ;)
Title: Re: Trigger to end the mission once a tank is blown up
Post by: Ice84 on 03 Jul 2006, 21:00:02
Cheers dude :)