# Pause/Unpause All Cooldowns For Player

Grammarpause all cooldowns for player inPlayer
FlagsNative | Action

Pauses or unpauses all cooldowns for the specified player.

# Arguments

Returns — void

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

Category: Player / Charges And Cooldowns

# Examples

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

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THanson01MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    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);

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

    }

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

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

    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);
    TriggerEnable(gt_ColonistLoad, true);

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

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

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

    libNtve_gf_SwooshCamera(gv_p01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1055)), 1.5);
    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);

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

    }

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

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

    libNtve_gf_SwooshCamera(gv_p01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), PointFromId(966), 1.5);
    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));

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

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

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


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

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

    }

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

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

    }

    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));

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

    }

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

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

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THanson01MusicIntro", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    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);

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

    }

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

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

    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);
    TriggerEnable(gt_ColonistLoad, true);

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

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

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

    libNtve_gf_SwooshCamera(gv_p01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1055)), 1.5);
    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);

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

    }

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

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

    libNtve_gf_SwooshCamera(gv_p01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), PointFromId(966), 1.5);
    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));

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

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

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


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

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

    }

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

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

    }

    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));

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

    }

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

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:5900

    gv_cinematicCompleted = false;
    CinematicFade(true, 3.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    UnitClearCooldowns(gv_cinematicKerrigan, false);
    UnitSetPropertyFixed(gv_cinematicKerrigan, c_unitPropEnergyPercent, 100.0);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2mapMapScript.galaxy:5900

    gv_cinematicCompleted = false;
    CinematicFade(true, 3.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    PlayerPauseAllCooldowns(gv_pLAYER_01_USER, false);
    UnitClearCooldowns(gv_cinematicKerrigan, false);
    UnitSetPropertyFixed(gv_cinematicKerrigan, c_unitPropEnergyPercent, 100.0);

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

            if (lv_pickedPlayer < 0) { break; }
            PlayerPauseAllCharges(lv_pickedPlayer, true);
            PlayerPauseAllCooldowns(lv_pickedPlayer, true);
        }
        auto2009A28F_g = lv_validPlayers;

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

            if (lv_pickedPlayer < 0) { break; }
            PlayerPauseAllCharges(lv_pickedPlayer, false);
            PlayerPauseAllCooldowns(lv_pickedPlayer, false);
        }
        auto1544564B_g = lv_validPlayers;

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

            	if (lv_pickedPlayer<0) { break; }
            	PlayerPauseAllCharges(lv_pickedPlayer, true);
            PlayerPauseAllCooldowns(lv_pickedPlayer, true);
        }
        auto2009A28F_g = lv_validPlayers;

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

            	if (lv_pickedPlayer<0) { break; }
            	PlayerPauseAllCharges(lv_pickedPlayer, false);
            PlayerPauseAllCooldowns(lv_pickedPlayer, false);
        }
        auto1544564B_g = lv_validPlayers;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13818

    if ((lv_vikingsPlayer >= 1) && (lv_vikingsPlayer <= libCore_gv_bALMaxPlayers)) {
        if ((libGDHL_gv_lostVikingsPlayer[lv_vikingsPlayer].lv_boat == EventUnit())) {
            PlayerPauseAllCooldowns(lv_vikingsPlayer, true);
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13833


            }
            PlayerPauseAllCooldowns(lv_vikingsPlayer, true);
        }
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13866


    lv_vikingsPlayer = UnitGetOwner(EventUnit());
    PlayerPauseAllCooldowns(lv_vikingsPlayer, false);
    return true;
}

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

    }

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

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

    }

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

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

        if (lv_pickedPlayer < 0) { break; }
        PlayerPauseAllCharges(lv_pickedPlayer, true);
        PlayerPauseAllCooldowns(lv_pickedPlayer, true);
    }
    auto54EA3DBC_g = lv_validPlayers;