# Intersection Of Player Groups
Flags —
Function
Returns the copy of a player group.
# Arguments
playergroup
— Group Aplayergroup
— Group B
Returns — playergroup
playergroup libNtve_gf_IntersectionOfPlayerGroups(
playergroup lp_groupA,
playergroup lp_groupB,
);
# 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/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:5305
// Implementation
lv_playerGroup = libNtve_gf_IntersectionOfPlayerGroups(lv_playerGroupAllies, lv_playerGroupCommnaders);
return lv_playerGroup;
}