OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: mcnorth on 31 Mar 2007, 23:59:01

Title: activate trigger when group is dead
Post by: mcnorth on 31 Mar 2007, 23:59:01
I'm trying to activate a trigger when all the members of a group are dead.

Messing with the commands "Units" (to get an array of units in the group) and, "ForEach", "alive" and "!alive" (to check each of the units in the array for life or death), and "Count" to get a tally on the dead or alive, I keep coming up with errors. I know  there's an easy way to do this but I'm afraid nothing is easy for me when it comes to ArmA.

Any tips are appreciated.

Thanks!

Never mind. I got it.

For anyone else that seeks this solution it is,,

({not alive _x} count units GroupName) == count units GroupName
Title: Re: activate trigger when group is dead
Post by: h- on 01 Apr 2007, 06:21:30
Please, in the future, edit your previous post instead of double posting..