OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: ZapBrannigan on 30 Nov 2007, 06:53:24

Title: player squad
Post by: ZapBrannigan on 30 Nov 2007, 06:53:24
Hi,

I need to know how to get a trigger to activate when the player is the last man alive in his squad. Can anybody help me? thanks
Title: Re: player squad
Post by: Wolfrug on 30 Nov 2007, 11:14:32
How about something like :

Code: [Select]
{alive _x} count units group Player == 1
I.e., when there is one unit left in the Player's group (which should be the player, since the mission would've ended if the player died, right?  ;))

Wolfrug out.
Title: Re: player squad
Post by: ZapBrannigan on 01 Dec 2007, 05:33:01
Hey thanks wolfrug