PDA

View Full Version : Entire group in vehicle check



steve1982
Feb 27 2006, 19:38
For a group of which the player is the leader I want to make a helo extract. Nice eh?

Now what I need is a condition that holds when all living groupmembers are inside the chopper.

Something link ((obj in ch47) or ! alive obj) for each soldier would work I guess... but it is a lot of typing http://forums.bistudio.com/oldsmileys/wink_o.gif

Any ideas? thx

THobson
Feb 27 2006, 19:46
Try

{(alive _x) and not (_x in ch47)} count units group player < 1

steve1982
Feb 27 2006, 21:41
Works like a dream&#33; Thanks&#33;