# Pause/Unpause All Charges For Player
Grammar — pause all charges for player inPlayer
Flags —Native
|Action
Pauses or unpauses regen for all charges for the specified player.
# Arguments
int
— Playerbool
<preset::PauseUnpauseOption> — Pause
Returns — void
native void PlayerPauseAllCharges(
int inPlayer,
bool inPause,
);
# Related
Category: Player / Charges And Cooldowns
- Add Charge Remaining Regen Time For Player —
void
— PlayerAddChargeRegenRemaining - Add Charge Full Regen Time For Player —
void
— PlayerAddChargeRegenFull - Add Charge Used For Player —
void
— PlayerAddChargeUsed - Remove Charge Used For Player —
void
— libNtve_gf_PlayerRemoveChargeUsed - Charge Regen Remaining For Player —
fixed
— PlayerGetChargeRegen - Charge Regen Full For Player —
fixed
— PlayerGetChargeRegenFull - Player Charge Used —
fixed
— PlayerGetChargeUsed - Pause/Unpause All Charges For Player —
void
— PlayerPauseAllCharges - Add Cooldown For Player —
void
— PlayerAddCooldown - Remove Cooldown For Player —
void
— libNtve_gf_PlayerRemoveCooldown - Player Cooldown —
fixed
— PlayerGetCooldown - Pause/Unpause All Cooldowns For Player —
void
— PlayerPauseAllCooldowns
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);
mods/core.sc2mod — base.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.sc2mod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14609
PlayerPauseAllCooldowns(lv_timeStopVictimPlayer, true);
PlayerPauseAllCharges(lv_timeStopVictimPlayer, true);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:14657
PlayerPauseAllCooldowns(lv_timeStopVictimPlayer, false);
PlayerPauseAllCharges(lv_timeStopVictimPlayer, false);
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:793
lv_pickedPlayer = PlayerGroupNextPlayer(auto162A8743_g, lv_pickedPlayer);
if (lv_pickedPlayer < 0) { break; }
PlayerPauseAllCharges(lv_pickedPlayer, true);
PlayerPauseAllCooldowns(lv_pickedPlayer, true);
}