# AIGetPlayerGroup
Flags —
Native
# Arguments
unitgroup
— inGroup
Returns — int
native int AIGetPlayerGroup(unitgroup inGroup);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:865
}
enemyPlayer = AIGetPlayerGroup(scanGroup);
if (enemyPlayer == -1) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1236
enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, r, null, c_noMaxCount);
enemyPlayer = AIGetPlayerGroup(enemyGroup);
if (enemyPlayer == -1) {
return;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1074
}
enemyPlayer = AIGetPlayerGroup(scanGroup);
if (enemyPlayer == -1) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1431
enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, r, null, c_noMaxCount);
enemyPlayer = AIGetPlayerGroup(enemyGroup);
if (enemyPlayer == -1) {
return;