# Pause/Unpause All Charges For Player

Grammarpause all charges for player inPlayer
FlagsNative | Action

Pauses or unpauses regen for all charges for the specified player.

# Arguments

Returns — void

native void PlayerPauseAllCharges(
	int inPlayer,
	bool inPause,
);

Category: Player / Charges And Cooldowns

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:898

    TriggerExecute(gt_FirebatDropshipAction, true, false);
    PlayerPauseAllCooldowns(gv_p1_USER, true);
    PlayerPauseAllCharges(gv_p1_USER, true);
    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    TriggerExecute(gt_StartGame, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1692


    PlayerPauseAllCooldowns(gv_p1_USER, false);
    PlayerPauseAllCharges(gv_p1_USER, false);
    while (!((gv_missionPhase == ge_PRESET_MissionPhase_Escort) && (gv_gameOver == false))) {
        Wait(0.1, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1249


    UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/C5C06D21"), null, PointFromId(292));
    PlayerPauseAllCharges(gv_p01_USER, false);
    PlayerPauseAllCooldowns(gv_p01_USER, false);
    CreepSetSpeed(c_creepSpeedGrowth, 1000.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4685

    TimerPause(gv_eggData[ge_SpawnType_stInfestedColonist].lv_timer, false);
    TimerPause(gv_eggData[ge_SpawnType_stInfestedMarine].lv_timer, false);
    PlayerPauseAllCharges(gv_p01_USER, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    gv_inCinematic = false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:906

    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    PlayerPauseAllCharges(gv_p01_USER, true);
    TriggerExecute(gt_StartGameStage1, true, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:938


    PlayerPauseAllCooldowns(gv_p01_USER, false);
    PlayerPauseAllCharges(gv_p01_USER, false);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THorner02MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    TriggerExecute(gt_JunkersStart, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:764

    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    PlayerPauseAllCharges(gv_p01_USER, true);
    UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/9E4D978B"), null, PointFromId(966));
    TriggerExecute(gt_StartGameWarehouse, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1222

    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
    PlayerPauseAllCooldowns(gv_p01_USER, false);
    PlayerPauseAllCharges(gv_p01_USER, false);
    gv_odinAIPlayerTarget = gv_p04_DOMINION_INFANTRY_A;
    TriggerExecute(gt_CreateOdinBossBar, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:715

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "TTychus04MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    PlayerPauseAllCooldowns(gv_pLAYER01_USER, true);
    PlayerPauseAllCharges(gv_pLAYER01_USER, true);
    AICampaignStart(gv_pLAYER03_PROTOSS);
    TriggerEnable(gt_PingDetectorCannon, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:747


    PlayerPauseAllCooldowns(gv_pLAYER01_USER, false);
    PlayerPauseAllCharges(gv_pLAYER01_USER, false);
    UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/3A99EA37"), null, PointFromId(13));
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:855


    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, true);
    PlayerPauseAllCharges(gv_pLAYER_01_USER, true);
    UIAlertUnit("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/F325FA28"), null, UnitFromId(128));
    Wait(2.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:882


    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    PlayerPauseAllCharges(gv_pLAYER_01_USER, false);
    TriggerExecute(gt_StartWarpPrizmDrops, true, false);
    TriggerExecute(gt_ObjectiveArtifactCreateQ, true, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:898

    TriggerExecute(gt_FirebatDropshipAction, true, false);
    PlayerPauseAllCooldowns(gv_p1_USER, true);
    PlayerPauseAllCharges(gv_p1_USER, true);
    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    TriggerExecute(gt_StartGame, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:1692


    PlayerPauseAllCooldowns(gv_p1_USER, false);
    PlayerPauseAllCharges(gv_p1_USER, false);
    while (!((gv_missionPhase == ge_PRESET_MissionPhase_Escort) && (gv_gameOver == false))) {
        Wait(0.1, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:1249


    UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/C5C06D21"), null, PointFromId(292));
    PlayerPauseAllCharges(gv_p01_USER, false);
    PlayerPauseAllCooldowns(gv_p01_USER, false);
    CreepSetSpeed(c_creepSpeedGrowth, 1000.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:4685

    TimerPause(gv_eggData[ge_SpawnType_stInfestedColonist].lv_timer, false);
    TimerPause(gv_eggData[ge_SpawnType_stInfestedMarine].lv_timer, false);
    PlayerPauseAllCharges(gv_p01_USER, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    gv_inCinematic = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:906

    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    PlayerPauseAllCharges(gv_p01_USER, true);
    TriggerExecute(gt_StartGameStage1, true, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:938


    PlayerPauseAllCooldowns(gv_p01_USER, false);
    PlayerPauseAllCharges(gv_p01_USER, false);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THorner02MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    TriggerExecute(gt_JunkersStart, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:764

    CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_p01_USER, true);
    PlayerPauseAllCharges(gv_p01_USER, true);
    UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/9E4D978B"), null, PointFromId(966));
    TriggerExecute(gt_StartGameWarehouse, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:1222

    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
    PlayerPauseAllCooldowns(gv_p01_USER, false);
    PlayerPauseAllCharges(gv_p01_USER, false);
    gv_odinAIPlayerTarget = gv_p04_DOMINION_INFANTRY_A;
    TriggerExecute(gt_CreateOdinBossBar, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:715

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "TTychus04MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    PlayerPauseAllCooldowns(gv_pLAYER01_USER, true);
    PlayerPauseAllCharges(gv_pLAYER01_USER, true);
    AICampaignStart(gv_pLAYER03_PROTOSS);
    TriggerEnable(gt_PingDetectorCannon, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:747


    PlayerPauseAllCooldowns(gv_pLAYER01_USER, false);
    PlayerPauseAllCharges(gv_pLAYER01_USER, false);
    UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/3A99EA37"), null, PointFromId(13));
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:855


    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, true);
    PlayerPauseAllCharges(gv_pLAYER_01_USER, true);
    UIAlertUnit("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/F325FA28"), null, UnitFromId(128));
    Wait(2.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:882


    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    PlayerPauseAllCharges(gv_pLAYER_01_USER, false);
    TriggerExecute(gt_StartWarpPrizmDrops, true, false);
    TriggerExecute(gt_ObjectiveArtifactCreateQ, true, true);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2055

            lv_pickedPlayer = PlayerGroupNextPlayer(autoCF5F6C0D_g, lv_pickedPlayer);
            if (lv_pickedPlayer < 0) { break; }
            PlayerPauseAllCharges(lv_pickedPlayer, true);
            PlayerPauseAllCooldowns(lv_pickedPlayer, true);
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2111

            lv_pickedPlayer = PlayerGroupNextPlayer(auto10906981_g, lv_pickedPlayer);
            if (lv_pickedPlayer < 0) { break; }
            PlayerPauseAllCharges(lv_pickedPlayer, false);
            PlayerPauseAllCooldowns(lv_pickedPlayer, false);
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1745

            	lv_pickedPlayer = PlayerGroupNextPlayer(autoCF5F6C0D_g, lv_pickedPlayer);
            	if (lv_pickedPlayer<0) { break; }
            	PlayerPauseAllCharges(lv_pickedPlayer, true);
            PlayerPauseAllCooldowns(lv_pickedPlayer, true);
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1801

            	lv_pickedPlayer = PlayerGroupNextPlayer(auto10906981_g, lv_pickedPlayer);
            	if (lv_pickedPlayer<0) { break; }
            	PlayerPauseAllCharges(lv_pickedPlayer, false);
            PlayerPauseAllCooldowns(lv_pickedPlayer, false);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:14609


    PlayerPauseAllCooldowns(lv_timeStopVictimPlayer, true);
    PlayerPauseAllCharges(lv_timeStopVictimPlayer, true);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:14657


    PlayerPauseAllCooldowns(lv_timeStopVictimPlayer, false);
    PlayerPauseAllCharges(lv_timeStopVictimPlayer, false);
    return true;
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:793

        lv_pickedPlayer = PlayerGroupNextPlayer(auto162A8743_g, lv_pickedPlayer);
        if (lv_pickedPlayer < 0) { break; }
        PlayerPauseAllCharges(lv_pickedPlayer, true);
        PlayerPauseAllCooldowns(lv_pickedPlayer, true);
    }