Jump to content
Sign in to follow this  
Franklin

Trigger help: Counting Units

Recommended Posts

I have a trigger set to figure out when a handful of groups are for the most part dead, and when some groups are entirely dead. I have searched the forums and found some examples of this, but none of the solutions are working for my particular scenario.

This is what i have in the condition field:

{!alive _x} count units qrf1 <= 1 && {!alive _x} count units qrf2 <= 1 && {!alive _x} count units qrf3 <= 1 && {!alive _x} count units qrf4 <= 1 && {!alive _x} count units qrf5 <= 1 && {!alive _x} count units qrf6 <= 1 && {!alive _x} count units drivergroup == 0 && {!alive _x} count units gunnergroup == 0;

I want to know when the QRF groups are equal to or less than 1, and when the driver and gunner groups are entirely dead. Then execute a script from the "on activation" field of the trigger.

Share this post


Link to post
Share on other sites

Wouldn't it be better to count the alive units.

{!alive _x} count units qrf1 <= 1 will be true as soon as you start the game as no units are dead.

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  

×