Some may have noticed this issue before, the situation:
a script which outputs the number of living squad members
_squadName = GroupAlpha;
#loop
_alive = count units _squadName;
hint format ["%1", _alive];
~1
goto "loop"
A squad of men, all with names (not that it matters), and the leader has:
GroupAlpha = group this;
The problem
The output of the "hint format" isn't up to date with the situation. For example, if I kill a soldier, it takes about 5 seconds or so to change the group count. Killing whole the squad in seconds, results in waiting over 30 seconds before the count says 0.
Question
Is there an easy method to speed this command up? It's too easy for what I have in my mind. I hope that there is a simple way to make it faster, or a way, involving the groupname to count units but faster than using the code I use now.