Home   Help Search Login Register  

Author Topic: activate trigger when group is dead  (Read 1330 times)

0 Members and 2 Guests are viewing this topic.

Offline mcnorth

  • Members
  • *
activate trigger when group is dead
« 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
« Last Edit: 01 Apr 2007, 06:26:18 by mcnorth »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: activate trigger when group is dead
« Reply #1 on: 01 Apr 2007, 06:21:30 »
Please, in the future, edit your previous post instead of double posting..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.