Jump to content
Sign in to follow this  
-TheOne-

Check if a whole group is dead

Recommended Posts

I was wondering if there's a short way of checking if all the units in a certian group are dead, instead of this:

"Alive _x" count [soldier1,soldier2,etc] == 0

I did a search, didn't find anything that could help me, or I missed it. If this question has already been answered, I apologize.

[EDIT]

Sorry for making this topic, found this:

{alive _x} count units groupname == 0;

Works nicely.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? !(alive leader groupname): ... might also work. Dunno how fast OpF assigns a new leader when a group leader is killed. smile_o.gif

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  

×