# Number Of Players In Player Group

Grammar — Number of players in g|Player Group
FlagsNative | Function

Returns the number of players in a player group.

# Arguments

  • playergroup — Group

Returns — int

native int PlayerGroupCount(playergroup inGroup);

Category: Player Group / Groups

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L8621
PlayerGroupCount(auto3C20983D_g)
// L9461
PlayerGroupCount(autoB9BF28AF_g)
// L9501
PlayerGroupCount(autoFB9AF868_g)
// L18210
PlayerGroupCount(autoB89CC9F3_g)
// L8621
PlayerGroupCount(auto3C20983D_g)
// L9461
PlayerGroupCount(autoB9BF28AF_g)
// L9501
PlayerGroupCount(autoFB9AF868_g)
// L18210
PlayerGroupCount(autoB89CC9F3_g)

# mods/core.sc2mod

NativeLib.galaxy

// L2031
PlayerGroupCount(lv_validPlayers)
// L2079
PlayerGroupCount(lv_validPlayers)
// L4482
PlayerGroupCount(lv_validPlayers)
// L4513
PlayerGroupCount(lv_validPlayers)
// L1721
PlayerGroupCount(lv_validPlayers)
// L1769
PlayerGroupCount(lv_validPlayers)
// L3740
PlayerGroupCount(lv_validPlayers)
// L3771
PlayerGroupCount(lv_validPlayers)

# mods/frontiers.sc2mod

Lib6CB3363F.galaxy

// L466
PlayerGroupCount(auto993E03F9_g)
// L897
PlayerGroupCount(auto307151DA_g)
// L908
PlayerGroupCount(autoB533AD6E_g)

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L326
PlayerGroupCount(lv_indexPool)
// L1257
PlayerGroupCount(lv_weirdoPoints)
// L2253
PlayerGroupCount(lv_weirdoPoints)
// L2259
PlayerGroupCount(lv_weirdoPoints)

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L196
PlayerGroupCount(libAMVS_gv_eventShufflerPG)
// L218
PlayerGroupCount(libAMVS_gv_eventShufflerPG)
// L222
PlayerGroupCount(libAMVS_gv_eventShufflerPG)
// L1924
PlayerGroupCount(libAMVS_gv_eventShufflerPG)

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

LibPEB1.galaxy

// L4664
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup)
// L131
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup)
// L7091
PlayerGroupCount(lv_zergBossGroup)

# mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod

LibLNYF.galaxy

// L193
PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_RaceUnfinished)
// L1589
PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_RaceFinished)
// L1600
PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_NotRanked)

# mods/heroesdata.stormmod

AILib.galaxy

// L2088
PlayerGroupCount(libAIAI_gv_heroAITeamPlayerData[lv_teamIndex].lv_humanPlayers)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L19812
PlayerGroupCount(lv_killingGroup)
// L21250
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroupNoNPCPlayers)
// L21267
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers)
// L21373
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroupNoNPCPlayers)
// L21390
PlayerGroupCount(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers)

# mods/heroesdata.stormmod

GameLib.galaxy

// L6315
PlayerGroupCount(lp_killingGroup)
// L6325
PlayerGroupCount(lp_killingTeamGroup)
// L6340
PlayerGroupCount(lp_killingGroup)
// L6467
PlayerGroupCount(lp_killingGroup)
// L6639
PlayerGroupCount(lp_deadPlayersTeam)
// L9037
PlayerGroupCount(lv_killCreditGroup)
// L9058
PlayerGroupCount(lv_killCreditGroup)
// L9100
PlayerGroupCount(lv_killCreditGroup)
// L9102
PlayerGroupCount(lv_xPAwardGroup)
// L9119
PlayerGroupCount(lv_xPAwardGroup)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1769
PlayerGroupCount(lv_creditGroup)
// L2181
PlayerGroupCount(lp_creditPlayerGroup)
// L2182
PlayerGroupCount(lp_creditPlayerGroup)

# mods/heroesdata.stormmod

SoundLib.galaxy

// L424
PlayerGroupCount(lp_allyPlayerGroup)
// L746
PlayerGroupCount(lv_livingPlayers)
// L793
PlayerGroupCount(lv_livingPlayers)
// L1049
PlayerGroupCount(libSond_gv_heroVO_HeroTakedownVOAlliesGroup[lv_triggeringPlayer])
// L1203
PlayerGroupCount(lv_teamPlayerGroup)
// L1259
PlayerGroupCount(libSond_gv_heroVO_CelebrateVOAlliesGroup[lv_triggeringTimerPlayer])

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L614
PlayerGroupCount(lv_validPlayers)
// L630
PlayerGroupCount(lv_validPlayers)
// L967
PlayerGroupCount(libStEx_gv_sEMMIntroPlayersWatching)
// L1006
PlayerGroupCount(lv_playersModelGood)
// L1010
PlayerGroupCount(lv_playersModelGood)
// L1096
PlayerGroupCount(lv_playersFinished)
// L1104
PlayerGroupCount(libStEx_gv_sEMMIntroPlayersWatching)
// L2290
PlayerGroupCount(lv_playersInIntro)

# mods/heroesdata.stormmod

UILib.galaxy

// L6632
PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, true))
// L6632
PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true))
// L8771
PlayerGroupCount(libCore_gv_activeHumanPlayers)
// L14448
PlayerGroupCount(PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player))
// L14454
PlayerGroupCount(PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player))

# mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmod

LibMLHH.galaxy

// L281
PlayerGroupCount(lv_lootRingPlayerGroup)
// L305
PlayerGroupCount(lv_lootRingPlayerGroup)
// L313
PlayerGroupCount(lv_lootRingPlayerGroup)
// L324
PlayerGroupCount(lv_lootRingPlayerGroup)
// L343
PlayerGroupCount(lv_lootRingPlayerGroup)
// L354
PlayerGroupCount(lv_lootRingPlayerGroup)

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L207
PlayerGroupCount(libMSHE_gv_mMISShrineGroup)
// L215
PlayerGroupCount(libMSHE_gv_mMISShrineGroup)

# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod

LibMTOD.galaxy

// L303
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent)
// L307
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L311
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L315
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L319
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent)
// L323
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L332
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L336
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L340
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)
// L344
PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)

# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod

LibMSC2.galaxy

// L164
PlayerGroupCount(lv_terrazineLaneGroup)
// L423
PlayerGroupCount(lv_nukePlayerGroup)
// L773
PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying)
// L805
PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying)
// L1066
PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L835
PlayerGroupCount(lv_killingGroup)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L277
PlayerGroupCount(lv_standardPlayers)
// L281
PlayerGroupCount(libLbty_gv_pingValidPlayers)
// L300
PlayerGroupCount(libLbty_gv_pingValidPlayers)
// L746
PlayerGroupCount(libLbty_gv_pingValidPlayers)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L1771
PlayerGroupCount(autoEDCAAF8F_g)