Jump to content
Sign in to follow this  
daniel-davies

Checking if there is no passengers in crew vehicle

Recommended Posts

Hi guys, I'm back again! I have another problem - essentially, my mission is for thirty players, and uses two Huron helicopters (each with 20 passenger seats) to transport players from the base to the AO, piloted by AI.

 

I'd like to check whether there are no passengers within the second Huron, so I don't have to make it take off and fly the insertion route when it doesn't need to (kinda looks a bit stupid for the players).

 

I'm not sure how I'd go about doing so however, I know I have to use crew and I'm assuming I get the fourth element from the array [driver,gunner,commander,turrets,cargo]? But I'm not sure about writing a condition to check against an empty array.

 

Any help would be appreciated.

Share this post


Link to post
Share on other sites


_vehicleHasNoPassengers = count (fullCrew [_vehicle, "cargo"]) < 1;

  • Like 1

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  

×