Jump to content
Sign in to follow this  
mcmatthew7898

count units in vehicles

Recommended Posts

i am making a mission where you and a small force of militia have to survive a US attack. to do this i use count thislist <6 to make sure that you do not have to deal with stragglers. But whenever i do this the game ends when it starts because all of the US soldiers are in vehicles' cargoes and it only counts them as one unit so the game thinks there are less than 6 when there are actually about 40 but in cargoes. any suggestions on how to make the game count the units in a vehicles cargo

Share this post


Link to post
Share on other sites

just make a small (size does not matter) end trigger with this in condition:

({alive _x AND side _x == east} count allUnits) < 6

change east to whatever side you play, will end game when there are less than 6 east units alive.

west

east

resistance

civilian

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  

×