# 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

Returns — playergroup

playergroup libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(
	int lp_alliance,
	int lp_player,
);

Category: Player Group / Useful Player Groups

# Examples

mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12316

        autoD1FA3909_itTestPool = libCOOC_gf_MutualAlliedCommandersofPlayerCoutInactiveAndSelf(autoD1FA3909_itPlayer);
        PlayerGroupRemove(autoD1FA3909_playerPool, autoD1FA3909_itPlayer);
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual,autoD1FA3909_itPlayer), autoD1FA3909_playerPool);
        if(PlayerGroupCount(autoD1FA3909_itTestPool)){
            lv_itPlayerGroup = autoD1FA3909_itTestPool;

mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:30054

        auto62F6BACF_itTestPool = libCOOC_gf_MutualAlliedCommandersofPlayerCoutInactiveAndSelf(auto62F6BACF_itPlayer);
        PlayerGroupRemove(auto62F6BACF_playerPool, auto62F6BACF_itPlayer);
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual,auto62F6BACF_itPlayer), auto62F6BACF_playerPool);
        if(PlayerGroupCount(auto62F6BACF_itTestPool)){
            lv_itPlayerGroup = auto62F6BACF_itTestPool;

mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1084


    // Implementation
    if (((libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickLifeLeech)] == false) || (UnitIsAlive(lp_damagingUnit) == false) || (PlayerGroupHasPlayer(libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_Ally, 1), UnitGetOwner(lp_damagingUnit)) == true) || (PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, UnitGetOwner(lp_damagingUnit)), UnitGetOwner(lp_damagedUnit)) == false) || (UnitFilterMatch(lp_damagedUnit, 1, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterHidden - 32)))) == false))) {
        return ;
    }

mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:5301

    // Automatic Variable Declarations
    // Variable Initialization
    lv_playerGroupAllies = libNtve_gf_AlliesEnemiesOfPlayerCountInactiveAndSelf(libNtve_ge_PlayerRelation_AllyMutual, lp_player);
    lv_playerGroupCommnaders = libCOOC_gf_CommanderPlayers();