OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: jhaglund on 11 Aug 2007, 00:07:25

Title: Kill/Destroy Sequence ArmA
Post by: jhaglund on 11 Aug 2007, 00:07:25
I'm wondering how to create a script/trigger, etc where one person/object needs to be ' not alive' before any other enemy units, and to have this linked to an End Trigger, or similar. I can work with a Trigger area or otherwise if someone has a good way to do this.

**idea is to sneak into an area and take out one thing before anything else and have the mission fail if this does not occur.

Thanks in advance
Title: Re: Kill/Destroy Sequence ArmA
Post by: DarkNova on 11 Aug 2007, 05:57:46
If i understand you correctly you can solve this with a global variable

name the unit u want to be killed: unit01

create a new trigger set size to 0 and in the condition field type:

Code: [Select]
not (alive unit01)
in the activation field type (could be any global variable you like) :

Code: [Select]
unit01dead = true
then in your the condition for your end trigger or in a waypoint put :

Code: [Select]
unit01dead