Files
ArmaSnips/highcommand.sqf

27 lines
421 B
Plaintext
Raw Normal View History

2025-11-20 13:02:39 +01:00
0 spawn {
// Replace `commander` with your unit variable
_commander = commander;
waitUntil {
sleep 1;
{
_units =
if (count (units _x select {alive _x}) != 0) then
{
_commander hcSetGroup [_x];
}
}
forEach groups side _commander;
{
if (count (units _x select {alive _x}) == 0) then
{
_commander hcRemoveGroup _x;
}
}
forEach hcAllGroups _commander;
false;
};
};