# PlayerGroupLoopBegin
Flags —
Native
# Arguments
playergroup
— g
Returns — void
native void PlayerGroupLoopBegin(playergroup g);
# Related
Category: Unclassified
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1203
AISetAPM(gv_p2_ENEMY_ZERG, 3000);
AISetAPM(gv_p3_ENEMY_PROTOSS, 3000);
PlayerGroupLoopBegin(gv_allEnemyPlayers);
while (!PlayerGroupLoopDone()) {
AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:1203
AISetAPM(gv_p2_ENEMY_ZERG, 3000);
AISetAPM(gv_p3_ENEMY_PROTOSS, 3000);
PlayerGroupLoopBegin(gv_allEnemyPlayers);
while (!PlayerGroupLoopDone()) {
AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4162
// Implementation
PlayerGroupLoopBegin(lp_players);
for ( ; !PlayerGroupLoopDone() ; PlayerGroupLoopStep() ) {
autoC47256CC_val = PlayerRace(PlayerGroupLoopCurrent());
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4524
}
PlayerGroupLoopBegin(PlayerGroupAll());
for ( ; !PlayerGroupLoopDone() ; PlayerGroupLoopStep() ) {
PlayerScoreValueEnableAll(PlayerGroupLoopCurrent(), false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4529
}
PlayerGroupLoopEnd();
PlayerGroupLoopBegin(PlayerGroupAll());
for ( ; !PlayerGroupLoopDone() ; PlayerGroupLoopStep() ) {
libNtve_gf_SetUpgradeLevelForPlayer(PlayerGroupLoopCurrent(), "CinematicMode", 1);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4569
libNCMI_gv_nM_ScreenMode = c_uiModeLetterboxed;
}
PlayerGroupLoopBegin(PlayerGroupAll());
for ( ; !PlayerGroupLoopDone() ; PlayerGroupLoopStep() ) {
PlayerScoreValueEnableAll(PlayerGroupLoopCurrent(), true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4574
}
PlayerGroupLoopEnd();
PlayerGroupLoopBegin(PlayerGroupAll());
for ( ; !PlayerGroupLoopDone() ; PlayerGroupLoopStep() ) {
libNtve_gf_SetUpgradeLevelForPlayer(PlayerGroupLoopCurrent(), "CinematicMode", 0);