private _highCommandModule = (createGroup sideLogic) createUnit ["HighCommand",[1000,0,0],[],0,"NONE"];
_highCommandModule synchronizeObjectsAdd [player];
private _highCommandModuleSub = (createGroup sideLogic) createUnit ["HighCommandSubordinate",[1000,0,0],[],0,"NONE"];
_highCommandModuleSub synchronizeObjectsAdd [_highCommandModule];
private _units = groupselectedunits player;
private _group = createGroup resistance;
{
if !(isplayer _x) then {
[_x] joinSilent _group;
};
} foreach (_units);
_group setGroupIdGlobal "Test";
player hcSetGroup [_group, groupId _group, "teamgreen"];