# Player In Player Group

Grammarp is in g|Player Group
FlagsNative | Function

Returns true if the specified player is in the specified player group.

# Arguments

  • playergroup — Group
  • int — Player

Returns — bool

native bool PlayerGroupHasPlayer(
	playergroup inGroup,
	int inPlayer,
);

Category: Player Group / Groups

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L11755
PlayerGroupHasPlayer(libCamp_gv__CB_Unit_ActivationPlayerGroup[lv_unitIndex], lv_playerIndex)

# campaigns/void.sc2campaign

MapScript.galaxy

// L4813
PlayerGroupHasPlayer(gv_enemyPlayers, UnitGetOwner(EventUnit()))
// L4828
PlayerGroupHasPlayer(gv_enemyPlayers, UnitGetOwner(auto0258A7AA_var))
// L4813
PlayerGroupHasPlayer(gv_enemyPlayers, UnitGetOwner(EventUnit()))
// L4828
PlayerGroupHasPlayer(gv_enemyPlayers, UnitGetOwner(auto0258A7AA_var))

# mods/core.sc2mod

NativeLib.galaxy

// L2180
PlayerGroupHasPlayer(libNtve_gv__PlayersInCineMode, lp_player)
// L3965
PlayerGroupHasPlayer(lp_groupB, lv_itPlayer)
// L4538
PlayerGroupHasPlayer(libNtve_gv__PlayersInStoryMode, lp_player)
// L1864
PlayerGroupHasPlayer(libNtve_gv__PlayersInCineMode, lp_player)
// L3796
PlayerGroupHasPlayer(libNtve_gv__PlayersInStoryMode, lp_player)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L640
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, UnitGetOwner(auto0A49F9F0_var))
// L5706
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, EventPlayer())
// L5722
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, UnitGetOwner(auto7FC6FACA_var))
// L6037
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true), UnitGetOwner(EventUnit()))
// L6192
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, lv_zagaraPlayer)
// L10473
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(lv_killingUnit))
// L558
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, UnitGetOwner(auto0A49F9F0_var))
// L4421
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, EventPlayer())
// L4437
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, UnitGetOwner(auto7FC6FACA_var))
// L4814
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, lv_zagaraPlayer)
// L5319
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))
// L5370
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))
// L6510
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))
// L6556
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))
// L6606
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))
// L6652
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, UnitGetOwner(EventUnit()))

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L181
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lp_killingPlayer)
// L194
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_creditPlayer)
// L482
PlayerGroupHasPlayer(libPVEB_gf_PBPlayersOnHumanTeam(), lp_player)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod

LibPBUI.galaxy

// L333
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_itViewer)
// L875
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_itViewer)
// L882
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_itViewer)
// L911
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_itViewer)
// L1002
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lp_player)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L1033
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lp_player)
// L1165
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lp_killingPlayer)
// L1178
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lv_creditPlayer)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEU.galaxy

// L356
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lv_itViewer)
// L863
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lv_itViewer)
// L870
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lv_itViewer)
// L899
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lv_itViewer)
// L990
PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lp_player)

# mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod

LibMHPP.galaxy

// L1895
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), libGame_gf_HeroKilledPlayer())

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L16254
PlayerGroupHasPlayer(lv_playersInVac, UnitGetOwner(lv_itUnit))
// L21243
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers, lv_sgtHammerCasterPlayer)
// L21366
PlayerGroupHasPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers, lv_sgtHammerCasterPlayer)

# mods/heroesdata.stormmod

GameLib.galaxy

// L2316
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleTank))
// L2316
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleBruiser))
// L2361
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleSupport))
// L2361
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleHealer))
// L2365
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleTank))
// L2365
PlayerGroupHasPlayer(libGame_gv_mVPStats[lv_iterator].lv_mvpRoles, (c_expandedRoleBruiser))
// L2399
PlayerGroupHasPlayer(libGame_gv_mVPStats[libGame_gv_mVPPlayer].lv_mvpRoles, (c_expandedRoleTank))
// L2399
PlayerGroupHasPlayer(libGame_gv_mVPStats[libGame_gv_mVPPlayer].lv_mvpRoles, (c_expandedRoleBruiser))
// L2407
PlayerGroupHasPlayer(libGame_gv_mVPStats[libGame_gv_mVPPlayer].lv_mvpRoles, (c_expandedRoleTank))
// L2407
PlayerGroupHasPlayer(libGame_gv_mVPStats[libGame_gv_mVPPlayer].lv_mvpRoles, (c_expandedRoleBruiser))

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L3450
PlayerGroupHasPlayer(lp_group2, lv_itPlayer)
// L3473
PlayerGroupHasPlayer(lp_toPlayers, libCore_gv_oBSERVER_ObserverUIPlayer)
// L3584
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, true), UnitGetOwner(lp_unit))
// L3587
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true), UnitGetOwner(lp_unit))
// L3784
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, true), UnitGetOwner(lp_unit))
// L3787
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true), UnitGetOwner(lp_unit))

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L3815
PlayerGroupHasPlayer(libCore_gv_activeHumanPlayers, lv_p)
// L3829
PlayerGroupHasPlayer(libCore_gv_activeHumanPlayers, lv_p)

# mods/heroesdata.stormmod

UILib.galaxy

// L5797
PlayerGroupHasPlayer(PlayerGroupActive(), lv_i_Player)

# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod

LibMSC2.galaxy

// L743
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lp_player)
// L842
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lp_player)
// L887
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lp_player)
// L958
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lp_player)
// L982
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lv_itPlayer)
// L1007
PlayerGroupHasPlayer(libMSC2_gv_mMSC2VOSoundPlaying, lv_itPlayer)
// L1353
PlayerGroupHasPlayer(libGame_gf_PlayersOnTeamHeroes(lv_nukeTeam, false), lp_player)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L386
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersAnswered[lv_humanPlayer], lv_computerPlayer)
// L676
PlayerGroupHasPlayer(libLbty_gv_pingValidPlayers, EventPlayer())
// L800
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player)
// L800
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersTried, lv_player)
// L806
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player)
// L893
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player)
// L899
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player)
// L906
PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L2076
PlayerGroupHasPlayer(libCOMI_gf_CM_CoopAI_AttackForce_GetExcludedPlayers(lv_unitTypeIter), lv_player)
// L2159
PlayerGroupHasPlayer(libCOMI_gf_CM_CoopAI_AttackForce_GetExcludedPlayers(lv_unitTypeIter), lv_player)
// L8391
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_sourcePlayer)
// L8391
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_targetPlayer)
// L8395
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_sourcePlayer)
// L8395
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_targetPlayer)
// L8485
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_inSourcePlayer)
// L8485
PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lp_inTargetPlayer)
// L10615
PlayerGroupHasPlayer(libCOMI_gv_cM_TransmissionPrimaryPlayers, lv_indexPlayer)
// L10619
PlayerGroupHasPlayer(libCOMI_gv_cM_TransmissionSecondaryPlayers, lv_indexPlayer)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L424
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_createdUnit))
// L440
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_createdUnit))
// L456
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_createdUnit))
// L471
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_createdUnit))
// L501
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))
// L523
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))
// L548
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))
// L584
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))
// L627
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))
// L660
PlayerGroupHasPlayer(PlayerGroupAlliance(c_playerGroupEnemy, 1), UnitGetOwner(lp_killedUnit))