# 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
- [F] —
void
— Add Unit To Unit Group — ( UnitGroupAdd ) - [F] —
void
— Add Unit Group To Unit Group Old — ( libNtve_gf_AddUnitGroupToUnitGroup ) - [F] —
void
— Add Unit Group To Unit Group — ( UnitGroupAddUnitGroup ) - [F] —
void
— Unit Object Group Call For Help — ( UnitObjectGroupCallForHelp ) - [F] —
void
— Remove Unit From Unit Group — ( UnitGroupRemove ) - [F] —
void
— Remove Unit Group From Unit Group Old — ( libNtve_gf_RemoveUnitGroupFromUnitGroup ) - [F] —
void
— Remove Unit Group From Unit Group — ( UnitGroupRemoveUnitGroup ) - [F] —
void
— Remove All Units From Unit Group — ( UnitGroupClear ) - [F] —
void
— Pause All Units In Unit Group — ( UnitGroupPauseAll ) - [F] —
int
— Create Unit Object Group From Unit Group — ( UnitObjectGroupFromUnitGroup ) - [F] —
int
— Number Of Units In Unit Group — ( UnitGroupCount ) - [F] —
bool
— Unit In Unit Group — ( UnitGroupHasUnit ) - [F] —
unit
— Unit From Unit Group — ( UnitGroupUnit ) - [F] —
unit
— Random Unit From Unit Group — ( UnitGroupRandomUnit ) - [F] —
unitgroup
— Copy Of Unit Group — ( UnitGroupCopy ) - [F] —
unit
— Closest Unit To Point Old — ( libNtve_gf_ClosestUnitToPoint ) - [F] —
unit
— Closest Unit To Point — ( UnitGroupClosestToPoint ) - [F] —
point
— Center Of Unit Group Old — ( libNtve_gf_CenterOfUnitGroup ) - [F] —
point
— Center Of Unit Group — ( UnitGroupCenterOfGroup )
# Examples
# mods/warcoop/warclassicsystem.sc2mod
// L739
UnitObjectGroupFromUnitGroup(lv_itUnitGroupCamp, libGAwX_gv_creepPlayersCreepSpots[libGAwX_gv_creepPlayersSpotsCount].lv_level)