# Remove Player Group From Player Group

Grammar — Remove all players in sourceGroup|Source Player Group from targetGroup|Target Player Group
FlagsAction

Removes all the players in one player group from another player group.

# Arguments

  • playergroup — Source Group
  • playergroup — Target Group

Returns — void

void libNtve_gf_RemovePlayerGroupFromPlayerGroup(
	playergroup lp_sourceGroup,
	playergroup lp_targetGroup,
);

Category: Player Group / Groups

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1097

        }
        if ((PlayerGroupCount(lv_playersFinished) > 0)) {
            libNtve_gf_RemovePlayerGroupFromPlayerGroup(lv_playersFinished, libStEx_gv_sEMMIntroPlayersWatching);
            if ((libStEx_gv_sEMMIntroCallbackCleanup != null)) {
                TriggerExecute(libStEx_gv_sEMMIntroCallbackCleanup, true, false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2289

            UnitGroupClear(lv_heroessHidden[lv_itPlayerInIntro]);
        }
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lv_playersFinished, lv_playersInIntro);
        if ((PlayerGroupCount(lv_playersInIntro) == 0)) {
            break;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3460

        PlayerGroupAdd(lv_playerGroup, lv_itPlayer);
    }
    libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_playerGroupToExclude, lv_playerGroup);
    auto33C0A2D0_g = lv_playerGroup;
    lv_itPlayer = -1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:3488

        PlayerGroupAdd(lv_playerGroup, lv_itPlayer);
    }
    libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_playerGroupToExclude, lv_playerGroup);
    autoBA916C8E_g = lv_playerGroup;
    lv_itPlayer = -1;

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:276


    lv_standardPlayers = PlayerGroupAll();
    libNtve_gf_RemovePlayerGroupFromPlayerGroup(libLbty_gv_pingValidPlayers, lv_standardPlayers);
    if ((PlayerGroupCount(lv_standardPlayers) > 0)) {
        libNtve_gf_SetDialogItemTooltip(libLbty_gv_pingPanelMinimapButton, StringExternal("UI/PingTip"), PlayerGroupAll());

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:298

    else {
        PingSetPlayerPingsShown(lp_players, true);
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libLbty_gv_pingValidPlayers);
        UISetFrameVisible(lp_players, c_syncFrameTypePingPanel, false);
        if ((PlayerGroupCount(libLbty_gv_pingValidPlayers) == 0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:3430

    }
    else {
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libCOMI_gv_cM_CoopAI_DontPingPlayers);
    }
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10668

        lv_notAlarakPlayers = libCOOC_gf_CommanderPlayers();
        lv_alarakPlayers = libCOOC_gf_CC_PlayersOfCommander("ProtossAlarak");
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lv_alarakPlayers, lv_notAlarakPlayers);
        ConversationDataLineSetPlayers(lp_conversation, ("Alarak"), lv_alarakPlayers);
        ConversationDataLineSetPlayers(lp_conversation, ("NotAlarak"), lv_notAlarakPlayers);

mods/starcoop/starcoop.sc2modbase.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.sc2modbase.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;