# Allies/Enemies Of Player

Grammaralliance|Allies/Enemies of player player
FlagsNative | Function

Returns all players that are considered allies or enemies, determined by the Alliance parameter, of the specified player.

# Arguments

Returns — playergroup

native playergroup PlayerGroupAlliance(
	int inType,
	int inPlayer,
);

Category: Player Group / Useful Player Groups

# Examples

# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod

LibAMGT.galaxy

// L1748
PlayerGroupAlliance(c_playerGroupAlly, libNtve_gf_KillingPlayer())
// L1749
PlayerGroupAlliance(c_playerGroupEnemy, libNtve_gf_KillingPlayer())

# mods/heroesbrawlmods/arenamodemods/punisherarena.stormmod

LibAMPU.galaxy

// L1815
PlayerGroupAlliance(c_playerGroupAlly, lv_player)
// L1816
PlayerGroupAlliance(c_playerGroupEnemy, lv_player)

# mods/heroesdata.stormmod

GameLib.galaxy

// L563
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L9438
PlayerGroupAlliance(c_playerGroupAlly, lp_killingPlayer)
// L10493
PlayerGroupAlliance(c_playerGroupEnemy, lv_player)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2281
PlayerGroupAlliance(c_playerGroupAlly, UnitGetOwner(lp_deadUnit))

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L3794
PlayerGroupAlliance(c_playerGroupAlly, lp_computerPlayer)
// L3801
PlayerGroupAlliance(c_playerGroupEnemy, lp_computerPlayer)
// L3809
PlayerGroupAlliance(c_playerGroupAlly, lp_computerPlayer)
// L3810
PlayerGroupAlliance(c_playerGroupAlly, lp_computerPlayer)
// L3823
PlayerGroupAlliance(c_playerGroupEnemy, lp_computerPlayer)
// L3824
PlayerGroupAlliance(c_playerGroupEnemy, lp_computerPlayer)
// L7347
PlayerGroupAlliance(c_playerGroupAlly, lv_owner)

# mods/heroesdata.stormmod

UILib.galaxy

// L2880
PlayerGroupAlliance(c_playerGroupEnemy, lv_itPlayer)
// L3520
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L3633
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L5670
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L5671
PlayerGroupAlliance(c_playerGroupEnemy, lp_player)
// L5951
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L5953
PlayerGroupAlliance(c_playerGroupEnemy, lp_player)
// L14448
PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player)
// L14454
PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player)
// L14454
PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player)

# mods/heromods/alarak.stormmod

LibHALA.galaxy

// L484
PlayerGroupAlliance(c_playerGroupAlly, lv_deadUnitOwner)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L83
PlayerGroupAlliance(c_playerGroupAlly, lp_player)
// L185
PlayerGroupAlliance(c_playerGroupAlly, lp_player)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L13045
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L13094
PlayerGroupAlliance(c_playerGroupEnemy, 1)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L424
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L440
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L456
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L471
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L501
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L523
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L548
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L584
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L627
PlayerGroupAlliance(c_playerGroupEnemy, 1)
// L660
PlayerGroupAlliance(c_playerGroupEnemy, 1)

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L1065
PlayerGroupAlliance(c_playerGroupAlly, lv_p)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L1294
PlayerGroupAlliance(c_playerGroupEnemy, UnitGetOwner(lv_caster))

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L62
PlayerGroupAlliance(c_playerGroupEnemy, player)

# mods/warcoop/warmeleeai.sc2mod

Orc.galaxy

// L438
PlayerGroupAlliance(c_playerGroupEnemy, player)
// L504
PlayerGroupAlliance(c_playerGroupEnemy, player)