# Pause/Unpause All Charges For Game
Grammar — pause|Pause/Unpause all charges for game
Flags —Native
|Action
Pauses or unpauses regen for all charges in the game.
# Arguments
bool
<preset::PauseUnpauseOption> — Pause
Returns — void
native void GamePauseAllCharges(bool inPaused);
# Related
Category: Game / Charges And Cooldowns
- Add Charge Remaining Regen Time For Game —
void
— GameAddChargeRegenRemaining - Add Charge Full Regen Time For Game —
void
— GameAddChargeRegenFull - Add Charge Used For Game —
void
— GameAddChargeUsed - Remove Charge Used For Game —
void
— libNtve_gf_GameRemoveChargeUsed - Charge Regen Remaining For Game —
fixed
— GameGetChargeRegen - Charge Regen Full For Game —
fixed
— GameGetChargeRegenFull - Game Charge Used —
fixed
— GameGetChargeUsed - Pause/Unpause All Charges For Game —
void
— GamePauseAllCharges - Add Cooldown For Game —
void
— GameAddCooldown - Remove Cooldown For Game —
void
— libNtve_gf_GameRemoveCooldown - Game Cooldown —
fixed
— GameGetCooldown - Pause/Unpause All Cooldowns For Game —
void
— GamePauseAllCooldowns
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1244
gv_missionStage1 = true;
GamePauseAllCharges(true);
GamePauseAllCooldowns(true);
TriggerExecute(gt_SCVBuildsSupplyDepot, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1302
UIAlertClear(gv_p01_USER);
GamePauseAllCharges(false);
GamePauseAllCooldowns(false);
gv_missionStage1 = false;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:707
libNtve_gf_SwooshCamera(gv_p1_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), PlayerStartLocation(gv_p1_USER), 1.5);
CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
GamePauseAllCharges(true);
GamePauseAllCooldowns(true);
TriggerExecute(gt_StartGameTacticalPhase, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1390
}
GamePauseAllCharges(false);
GamePauseAllCooldowns(false);
auto8992C0F7_g = gv_protossPlayerGroup;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2map — MapScript.galaxy:1244
gv_missionStage1 = true;
GamePauseAllCharges(true);
GamePauseAllCooldowns(true);
TriggerExecute(gt_SCVBuildsSupplyDepot, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2map — MapScript.galaxy:1302
UIAlertClear(gv_p01_USER);
GamePauseAllCharges(false);
GamePauseAllCooldowns(false);
gv_missionStage1 = false;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:707
libNtve_gf_SwooshCamera(gv_p1_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), PlayerStartLocation(gv_p1_USER), 1.5);
CinematicFade(true, 1.5, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
GamePauseAllCharges(true);
GamePauseAllCooldowns(true);
TriggerExecute(gt_StartGameTacticalPhase, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:1390
}
GamePauseAllCharges(false);
GamePauseAllCooldowns(false);
auto8992C0F7_g = gv_protossPlayerGroup;
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2147
GameSetSpeedLocked(true);
GameSetSeedLocked(lp_fixedSeedOnOff);
GamePauseAllCharges(true);
VisEnable(c_visTypeMask, false);
VisEnable(c_visTypeFog, false);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2162
GameSetSpeedLocked(false);
GameSetSeedLocked(false);
GamePauseAllCharges(false);
VisEnable(c_visTypeMask, true);
VisEnable(c_visTypeFog, true);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1831
GameSetSpeedLocked(true);
GameSetSeedLocked(true);
GamePauseAllCharges(true);
VisEnable(c_visTypeMask, false);
VisEnable(c_visTypeFog, false);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1846
GameSetSpeedLocked(false);
GameSetSeedLocked(false);
GamePauseAllCharges(false);
VisEnable(c_visTypeMask, true);
VisEnable(c_visTypeFog, true);