# Create Unit Object Group From Unit Group

Grammar — Create object Group from group
FlagsNative | Function

# Arguments

  • unitgroup — Unit Group
  • int — Group Level

Returns — int

native int UnitObjectGroupFromUnitGroup(
	unitgroup group,
	int groupLevel,
);

Category: Unit Group / Groups

# Examples

mods/warcoop/warclassicsystem.sc2modbase.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;
        }