Jump to content
Sign in to follow this  
BronzeEagle

how to empty condition

Recommended Posts

im trying to make a condition that everyone is out of the cargo of a helicopter that the objective gets ticked. I know how to tick an objective but i don't know how to write the condition. could someone help me?

Share this post


Link to post
Share on other sites

checking for certain units:

{_x in VEHICLE} count ARRAY == 0

checking for an empty cargo space:

count ((crew VEHICLE) - [commander VEHICLE, gunner VEHICLE, driver VEHICLE]) == 0

VEHICLE => your chopper

ARRAY => an array holding all units to check for

Share this post


Link to post
Share on other sites

so array would be the group name of the group im checking to see if they all got out?

Share this post


Link to post
Share on other sites

you need to read the units from the group first 'units GROUPNAME'

{_x in VEHICLE} count (units GROUPNAME) == 0

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  

×