_grp = _this select 0;
while {count units _grp > 0} do
{
sleep 1.0;
player globalchat format["%1",count units _grp];
};
9 civilians in the editor (in a group). I shoot one, about 7 seconds later I hear them call out "OH NO... 5 IS DOWN". Then the counter drops down to 8... is there any instantaneous way to check groups for sizes?
_grp = _this select 0;
_counter = 0;
{if (alive _x) then {_counter = _counter + 1};} forEach units _group;
while {true} do
{
sleep 1.0;
_counter = 0;
{if (alive _x) then {_counter = _counter + 1};} forEach units _group;
player globalchat format["%1",count units _grp];
};
Even this does not work too well, there is a large gap between "alive" and "dead" notions, and it can take up to 20 seconds for the game to realise that there is 0 units left in the group.