PDA

View Full Version : check if entire group is dead



rwillis
Dec 26 2006, 18:03
How do I check if an entire enemy group is dead through script?

I tried <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{&#33;alive _x} count enemysquad == 0[/QUOTE] where enemysquad is the name of the group, but it seems to want an array to check there. Is there a way for me to check if the group is dead without having to name every soldier in the group?

MessiahUA
Dec 26 2006, 18:05
{alive _x} count units group == 0

rwillis
Dec 26 2006, 18:16
thanks http://forums.bistudio.com/oldsmileys/wink_o.gif