Home   Help Search Login Register  

Author Topic: Group death trigger  (Read 442 times)

0 Members and 1 Guest are viewing this topic.

AlejandroDaJ

  • Guest
Group death trigger
« on: 18 Jul 2003, 03:31:48 »
What is the best way to trigger an event if the condition is for every vehicle/person in a group to be dead or destroyed?

I tried making a gigantic trigger, grouping it to the group leader, and setting it to "Whole group/not present", but the trigger activates if just the group leader is killed.

Does anyone know of a better method?

deaddog

  • Guest
Re:Group death trigger
« Reply #1 on: 18 Jul 2003, 03:53:13 »
Put this in the condition line of your trigger:

count(units groupname) == 0

If you use this with a group of vehicles, then it only takes into account the status of the human crew members and not the condition of the vehicle.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group death trigger
« Reply #2 on: 18 Jul 2003, 07:01:28 »
i think (but aint sure) dat deaddog way got bugs in it  :-X - it takes som time 4 da deaths 2 register (til dey say oh no som1 is down) - so it wil work slower + im not sure da death of da last 1 wil count in da group (no1 2 call him dead ?) - but im not sure bout dis 1

btw if im wrong just tel me ;)

but u can also use

"alive _X" count (units groupname) == 0

;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Group death trigger
« Reply #3 on: 18 Jul 2003, 10:57:50 »
deaddog's way does work, but it can take up to 30 seconds for the trigger to fire after the last loon has been killed.
Plenty of reviewed ArmA missions for you to play

deaddog

  • Guest
Re:Group death trigger
« Reply #4 on: 19 Jul 2003, 15:52:55 »
@LCD

You're right.  It does take a while to register.  The "alive _x"  way works instantly  :)