Jump to content
Sign in to follow this  
Kieran Hayns

AI check when transport is full

Recommended Posts

I am creating a rescue misson.

 

The players find civilians from around the map and bring them to an extraction point.

 

Once you reach the extraction point two transport helicopter fly in and land.

 

The players can then command the "civilians" to board the helicopter(s). while the players fend of the enemy assault

 

The idea is that once the transport is full it will automatically take off and fly away to another waypoint. I have a trigger setup that will count the number of units. Once theis count reaches a certai amount you win (Or dont)

 

I have looked around quite a bit and i cant seem to find a method or atleast a variable for getting an AI controlled transport to take off once its at full capacity.

 

I assumed that i would just add a waypoint trigger and have the waypoint trigger once its full.  But how can i check this?

 

Thanks

Share this post


Link to post
Share on other sites

Hi, i'm using this condition in one of my missions:

(count (fullCrew [_vehicle,"",true]) == count (fullCrew _vehicle))

which returns true if the _vehicle is full.

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  

×