im haveing trouble with a script that sets an objective to done when three different groups, named grp1,grp2, and grp3, are down to three men or less.
in each groups leader's initi. field i havethis to not only assign the whole squad a name but also keeping them from fleeing
"_x allowfleeing 0" foreach units group this; grpx = group this
**the x in grpx is either 1,2, or 3**
not sure if that is correct...
now this is the script that is supposed to set objective 4 as done when all three groups are down to 3 men or less.
#loop
;sets objective 4 as done when three groups namedgrp1, grp2, and grp3 and down to 3 squad members or less
? (count units mygrp1 <= 3) and (count units mygrp2 <=3) and (count units mygrp3 <=3) : "4" ObjStatus "DONE"; exit
goto "loop"
for some reason, i can't get it to work properly :-\
did i screw up somewhere?