Jump to content
Sign in to follow this  
3l0ckad3

Heli EVAC whether players live or die piloted by AI

Recommended Posts

I need help with syntax by trigger that takes in account that some players and AI might have died during a mission in a MP session, and I need for the heli not to take off before everyone gets in that is still alive.
So lets say bob1 && bob2 && bob3 go out on a mission but sadly bob2 dies during the mission, I need for the trigger to recognize that so it still takes off and RTBs even tho all can't possibly be in the chopper, but I'd still like for it to fire right if everyone lives. 
And if at all possible it would be nice if the EVAC chopper spawns when needed so that it isn't eating up resources while the mission is going on..

My computer died from a raid0 failure taking all my syntax with it or I'd still have this syntax :(
Thank you a ton for your time and help
Cheers :)  

Share this post


Link to post
Share on other sites

You need to count the alive units and when that number equals those that have entered the vehicle it takes off

 

 

for named units

{_x in heli} count  [bob1,bob2,bob3]  ==  {alive _x} count  [bob1,bob2,bob3]

Or if they're in a group

{_x in heli}count units mygroup  == {alive _x} count units  mygroup
  • Like 1

Share this post


Link to post
Share on other sites

You're a legend, I'll try this when I get back home,, thank you again brother.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×