# Allies/Enemies Of Player (Count Inactive And Self)
Grammar — alliance|Allies/Enemies of player player
Flags —Function
Returns all players that are considered allies or enemies, determined by the Alliance parameter, of the specified player. (Count inactive players, and the player itself would be count as a ally)
# Arguments
int
[ preset::PlayerRelation ] — Allianceint
— Player
Returns — playergroup
playergroup libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(
int lp_alliance,
int lp_player,
);
# Related
Category: Player Group / Useful Player Groups
- [F] —
playergroup
— All Players — ( PlayerGroupAll ) - [F] —
playergroup
— Empty Player Group — ( PlayerGroupEmpty ) - [F] —
playergroup
— Active Players — ( PlayerGroupActive ) - [F] —
playergroup
— Allies/Enemies Of Player — ( PlayerGroupAlliance ) - [F] —
playergroup
— Allies/Enemies Of Player (Count Inactive And Self) — ( libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf ) - [F] —
playergroup
— Convert Player To Player Group — ( PlayerGroupSingle )
# Examples
# mods/starcoop/starcoop.sc2mod
// L12313
libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual,autoD1FA3909_itPlayer)
// L30046
libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual,auto62F6BACF_itPlayer)
# mods/starcoop/starcoop.sc2mod
// L1085
libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_Ally, 1)
# mods/starcoop/starcoop.sc2mod
// L5301
libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual, lp_player)