Home   Help Search Login Register  

Author Topic: All live members of a group are in a trigger  (Read 604 times)

0 Members and 1 Guest are viewing this topic.

2nd Ranger

  • Guest
All live members of a group are in a trigger
« on: 28 Jan 2005, 19:51:45 »
Hello

I'm trying to get a mission to end when all the living members of the player group are inside the trigger (extract) zone. I was trying to modify this to help me

{(alive _X)&&(_x in thislist)} count ((units group delta)  == {alive _x} count ((units group delta)

but It needs to be like the following;

Activation: WEST present

Condition: This && (the number of members of group Delta) within 20 metres of extract zone is equal to (the number of living members of group Delta)

End#1

I'm slowly learning the coding stuff, and any help with that would be great.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:All live members of a group are in a trigger
« Reply #1 on: 28 Jan 2005, 20:01:26 »
Group the trigger to the group leader.    You now have new options in the Activation box.   You don't need any code.

If you wanted code, it would be something like:-

Activation:   West present
Condition:   "alive _x" count units grp1 == "_x in thislist" count units grp1

Syntax not guaranteed.  
Plenty of reviewed ArmA missions for you to play

2nd Ranger

  • Guest
Re:All live members of a group are in a trigger
« Reply #2 on: 28 Jan 2005, 20:24:05 »
Whoops, didn't know that.

Thanks alot. :)

Rocko Bonaparte

  • Guest
Re:All live members of a group are in a trigger
« Reply #3 on: 29 Jan 2005, 07:20:37 »
Does this work in multiplayer?  I was using the group activation trigger in multiplayer to end a mission, but it didn't end when the remaining members of the group were within boundaries.

Edit: N/M playtested with outdated version of the mission whoops.
« Last Edit: 29 Jan 2005, 07:36:48 by Rocko Bonaparte »