# Create Unit Object Group From Unit Group
Grammar — Create object Group from group
Flags —Native
|Function
# Arguments
unitgroup
— Unit Groupint
— Group Level
Returns — int
native int UnitObjectGroupFromUnitGroup(
unitgroup group,
int groupLevel,
);
# Related
Category: Unit Group / Groups
- Add Unit To Unit Group —
void
— UnitGroupAdd - Add Unit Group To Unit Group Old —
void
— libNtve_gf_AddUnitGroupToUnitGroup - Add Unit Group To Unit Group —
void
— UnitGroupAddUnitGroup - Unit Object Group Call For Help —
void
— UnitObjectGroupCallForHelp - Remove Unit From Unit Group —
void
— UnitGroupRemove - Remove Unit Group From Unit Group Old —
void
— libNtve_gf_RemoveUnitGroupFromUnitGroup - Remove Unit Group From Unit Group —
void
— UnitGroupRemoveUnitGroup - Remove All Units From Unit Group —
void
— UnitGroupClear - Pause All Units In Unit Group —
void
— UnitGroupPauseAll - Create Unit Object Group From Unit Group —
int
— UnitObjectGroupFromUnitGroup - Number Of Units In Unit Group —
int
— UnitGroupCount - Unit In Unit Group —
bool
— UnitGroupHasUnit - Unit From Unit Group —
unit
— UnitGroupUnit - Random Unit From Unit Group —
unit
— UnitGroupRandomUnit - Copy Of Unit Group —
unitgroup
— UnitGroupCopy - Closest Unit To Point Old —
unit
— libNtve_gf_ClosestUnitToPoint - Closest Unit To Point —
unit
— UnitGroupClosestToPoint - Center Of Unit Group Old —
point
— libNtve_gf_CenterOfUnitGroup - Center Of Unit Group —
point
— UnitGroupCenterOfGroup
# Examples
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:739
libGAwX_gv_creepPlayersCreepSpots[libGAwX_gv_creepPlayersSpotsCount].lv_level += lv_itUnitLevel;
}
libGAwX_gv_creepPlayersCreepSpots[libGAwX_gv_creepPlayersSpotsCount].lv_id = UnitObjectGroupFromUnitGroup(lv_itUnitGroupCamp, libGAwX_gv_creepPlayersCreepSpots[libGAwX_gv_creepPlayersSpotsCount].lv_level);
libGAwX_gv_creepPlayersSpotsCount += 1;
}