# Remove Player Group From Player Group
Grammar — Remove all players in sourceGroup|Source Player Group from targetGroup|Target Player Group
Flags —Action
Removes all the players in one player group from another player group.
# Arguments
playergroup
— Source Groupplayergroup
— Target Group
Returns — void
void libNtve_gf_RemovePlayerGroupFromPlayerGroup(
playergroup lp_sourceGroup,
playergroup lp_targetGroup,
);
# Related
Category: Player Group / Groups
- Add Player To Player Group —
void
— PlayerGroupAdd - Add Player Group To Player Group —
void
— libNtve_gf_AddPlayerGroupToPlayerGroup - Remove Player From Player Group —
void
— PlayerGroupRemove - Remove Player Group From Player Group —
void
— libNtve_gf_RemovePlayerGroupFromPlayerGroup - Remove All Players From Player Group —
void
— PlayerGroupClear - Number Of Players In Player Group —
int
— PlayerGroupCount - Player In Player Group —
bool
— PlayerGroupHasPlayer - Player From Player Group —
int
— PlayerGroupPlayer - Copy Of Player Group —
playergroup
— PlayerGroupCopy - Union Of Player Groups —
playergroup
— libNtve_gf_UnionOfPlayerGroups - Intersection Of Player Groups —
playergroup
— libNtve_gf_IntersectionOfPlayerGroups
# Examples
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibCOMI.galaxy:3430
}
else {
libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libCOMI_gv_cM_CoopAI_DontPingPlayers);
}
}
mods/starcoop/starcoop.sc2mod — base.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.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;