# Timer Is Paused

Grammart is paused
FlagsNative | Function

Returns true if the timer has been paused.

# Arguments

  • timer — Timer

Returns — bool

native bool TimerIsPaused(timer t);

Category: Timer / Timers

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:2512

        }

        if (!((TimerIsPaused(gv_channelTimer) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:2512

        }

        if (!((TimerIsPaused(gv_channelTimer) == true))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2803

        gv_s2_KerriganPowerProgress = TimerGetElapsed(gv_s2_ProtectKerriganTimer);
        libVCUI_gf_SetProgressBarProgress(FixedToInt((100.0 * (gv_s2_KerriganPowerProgress / gv_s2_KerriganPowerProgressMax))));
        if ((TimerIsPaused(gv_s2_ProtectKerriganTimer) == true)) {
            libVCUI_gf_SetProgressBarLabel((StringExternal("Param/Value/75784CD7") + FixedToText((100.0 * (gv_s2_KerriganPowerProgress / gv_s2_KerriganPowerProgressMax)), 1) + StringExternal("Param/Value/C93EBE22")));
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:2803

        gv_s2_KerriganPowerProgress = TimerGetElapsed(gv_s2_ProtectKerriganTimer);
        libVCUI_gf_SetProgressBarProgress(FixedToInt((100.0 * (gv_s2_KerriganPowerProgress / gv_s2_KerriganPowerProgressMax))));
        if ((TimerIsPaused(gv_s2_ProtectKerriganTimer) == true)) {
            libVCUI_gf_SetProgressBarLabel((StringExternal("Param/Value/75784CD7") + FixedToText((100.0 * (gv_s2_KerriganPowerProgress / gv_s2_KerriganPowerProgressMax)), 1) + StringExternal("Param/Value/C93EBE22")));
        }

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2509


    while (true) {
        if ((TimerIsPaused(libAMCT_gv_aRMSkyTempleActivateWarningTimer) == false) && (TimerGetRemaining(libAMCT_gv_aRMSkyTempleActivateWarningTimer) > 0.0)) {
            lv_state = libAMCT_ge_MMCapturePointsUIState_Preparing;
            if ((lv_state != lv_lastState)) {

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2517

            lv_lastState = lv_state;
        }
        else if ((libAMCT_gf_MMCapturePointsUIAnyTempleisBlessed() == true) && (TimerIsPaused(libAMCT_gv_aRMSkyTempleTimedTempleTimer) == false) && (TimerGetRemaining(libAMCT_gv_aRMSkyTempleTimedTempleTimer) > 0.0) && (TimerGetRemaining(libAMCT_gv_aRMSkyTempleTimedTempleTimer) <= 7.0)) {
            lv_state = libAMCT_ge_MMCapturePointsUIState_Expiring;
            if ((lv_state != lv_lastState)) {

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2633

                }
                libAMCT_gf_MMCapturePointsUISetTempleCaptureProgress(lv_itTemplIndex, lv_ownerTeam, AbsI(libGame_gf_CapturePointCounter(libAMCT_gv_aRMSkyTemple[lv_itTemplIndex].lv_beaconIndex)), libGame_gf_CapturePointCounterMax(libAMCT_gv_aRMSkyTemple[lv_itTemplIndex].lv_beaconIndex));
                if ((TimerIsPaused(libAMCT_gv_aRMSkyTempleTimedTempleTimer) == false) && (TimerGetRemaining(libAMCT_gv_aRMSkyTempleTimedTempleTimer) >= 0.0) && (TimerGetRemaining(libAMCT_gv_aRMSkyTempleTimedTempleTimer) <= 7.0)) {
                    libNtve_gf_SetDialogItemText(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleTimerLabel[lv_itTemplIndex], FixedToText(TimerGetRemaining(libAMCT_gv_aRMSkyTempleTimedTempleTimer), 1), PlayerGroupAll());
                }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12655


    if ((TimerGetDuration(libPEB1_gv_archangel1_Timer) > 0.0)) {
        if ((TimerIsPaused(libPEB1_gv_archangel1_Timer) == false)) {
            TimerPause(libPEB1_gv_archangel1_Timer, true);
        }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12664


    if ((TimerGetDuration(libPEB1_gv_archangel2_Timer) > 0.0)) {
        if ((TimerIsPaused(libPEB1_gv_archangel2_Timer) == false)) {
            TimerPause(libPEB1_gv_archangel2_Timer, true);
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:449

        lv_remaingTime = TimerGetRemaining(libPBUI_gv_curateHeroSelectionSetting.lv_countdownTimer);
        libNtve_gf_SetDialogItemText(libPBUI_gv_curateHeroSelectionUI.lv_countdownLabel, TextTimeFormat(StringToText("<sectotal/>"), FixedToInt(TimerGetRemaining(libPBUI_gv_curateHeroSelectionSetting.lv_countdownTimer))), PlayerGroupAll());
        if ((lv_remaingTime < 11.0) && (TimerIsPaused(libPBUI_gv_curateHeroSelectionSetting.lv_countdownTimer) == false) && (lv__10SecondReminderPlayed == false)) {
            lv__10SecondReminderPlayed = true;
            SoundPlayForPlayer(SoundLink("UI_BNet_Draft_Countdown_10Sec", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:454

        }

        if ((lv_remaingTime < 6.0) && (TimerIsPaused(libPBUI_gv_curateHeroSelectionSetting.lv_countdownTimer) == false) && (lv__5SecondReminderPlayed == false)) {
            lv__5SecondReminderPlayed = true;
            libNtve_gf_SetDialogItemStyle(libPBUI_gv_curateHeroSelectionUI.lv_countdownLabel, "CurateHeroSelection_CountdownLabelWarning", PlayerGroupAll());

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:472

        lv_remaingTime = TimerGetRemaining(libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_countdownTimer);
        libNtve_gf_SetDialogItemText(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_countdownLabel, TextTimeFormat(StringToText("<sectotal/>"), FixedToInt(TimerGetRemaining(libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_countdownTimer))), PlayerGroupAll());
        if ((lv_remaingTime < 11.0) && (TimerIsPaused(libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_countdownTimer) == false) && (lv__10SecondReminderPlayed == false)) {
            lv__10SecondReminderPlayed = true;
            SoundPlayForPlayer(SoundLink("UI_BNet_Draft_Countdown_10Sec", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:477

        }

        if ((lv_remaingTime < 6.0) && (TimerIsPaused(libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_countdownTimer) == false) && (lv__5SecondReminderPlayed == false)) {
            lv__5SecondReminderPlayed = true;
            libNtve_gf_SetDialogItemStyle(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_countdownLabel, "CurateHeroSelection_CountdownLabelWarning", PlayerGroupAll());

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

    if (autoE2C695E8_val == "HeroErik") {
        PathDestroy(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikPath);
        if ((TimerIsPaused(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikDeathTimer) == true)) {
            libAIAI_gf_AITeamDelegateModifyHeroStatusTokensforTeam(libAIAI_ge_AITeamDelegateAddRemoveLaneValue_Remove, libGDHL_gv_aIHeroDelegateTokenValueVikingValue, libGame_gf_TeamNumberOfPlayer(lv_lVPlayer), libAIAI_ge_AITeamDelegateLivingDeadHeroStatusUpdates_HeroAlive);
        }

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

    else if (autoE2C695E8_val == "HeroBaleog") {
        PathDestroy(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogPath);
        if ((TimerIsPaused(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogDeathTimer) == true)) {
            libAIAI_gf_AITeamDelegateModifyHeroStatusTokensforTeam(libAIAI_ge_AITeamDelegateAddRemoveLaneValue_Remove, libGDHL_gv_aIHeroDelegateTokenValueVikingValue, libGame_gf_TeamNumberOfPlayer(lv_lVPlayer), libAIAI_ge_AITeamDelegateLivingDeadHeroStatusUpdates_HeroAlive);
        }

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

    else if (autoE2C695E8_val == "HeroOlaf") {
        PathDestroy(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafPath);
        if ((TimerIsPaused(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafDeathTimer) == true)) {
            libAIAI_gf_AITeamDelegateModifyHeroStatusTokensforTeam(libAIAI_ge_AITeamDelegateAddRemoveLaneValue_Remove, libGDHL_gv_aIHeroDelegateTokenValueVikingValue, libGame_gf_TeamNumberOfPlayer(lv_lVPlayer), libAIAI_ge_AITeamDelegateLivingDeadHeroStatusUpdates_HeroAlive);
        }

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

    lv_cairn = EventUnit();
    lv_itPlayer = UnitGetOwner(lv_cairn);
    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeActivate) && (TimerIsPaused(libGDHL_gv_lostVikingsPlayer[lv_itPlayer].lv_checkpointReachedCarinRespawnTimer) == false)) {
        TimerPause(libGDHL_gv_lostVikingsPlayer[lv_itPlayer].lv_checkpointReachedCarinRespawnTimer, true);
    }

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

    }

    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeDeactivate) && (TimerIsPaused(libGDHL_gv_lostVikingsPlayer[lv_itPlayer].lv_checkpointReachedCarinRespawnTimer) == true)) {
        TimerPause(libGDHL_gv_lostVikingsPlayer[lv_itPlayer].lv_checkpointReachedCarinRespawnTimer, false);
    }

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

        auto39C2B936_var = UnitGroupUnitFromEnd(auto39C2B936_g, auto39C2B936_u);
        if (auto39C2B936_var == null) { break; }
        if ((TimerIsPaused(libGDHL_gv_mishaDeathTimer[lv_rexxarPlayer]) == true)) {
            libAIAI_gf_AITeamDelegateModifyHeroStatusTokensforTeam(libAIAI_ge_AITeamDelegateAddRemoveLaneValue_Remove, libGDHL_gv_aIHeroDelegateTokenValueMishaValue, libGame_gf_TeamNumberOfPlayer(lv_rexxarPlayer), libAIAI_ge_AITeamDelegateLivingDeadHeroStatusUpdates_HeroAlive);
        }

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


    if ((libCore_gv_sYSGameMode == libCore_ge_GameModes_Tutorial1)) {
        while (!((libNtve_gf_PlayerInCinematicMode(1) == false) && (TimerIsPaused(libGame_gv_openTheGatesTimer) == false))) {
            Wait(0.5, c_timeGame);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3318

        lv_itIndex = 1;
        for ( ; ( (auto62E41E9B_ai >= 0 && lv_itIndex <= auto62E41E9B_ae) || (auto62E41E9B_ai < 0 && lv_itIndex >= auto62E41E9B_ae) ) ; lv_itIndex += auto62E41E9B_ai ) {
            if ((TimerIsPaused(libMapM_gv_mMRavenTimers[lv_itIndex]) == false) && (TimerGetRemaining(libMapM_gv_mMRavenTimers[lv_itIndex]) > 0.0)) {
                libMapM_gv_mMRavenTimers3[lv_itIndex] = true;
                TimerPause(libMapM_gv_mMRavenTimers[lv_itIndex], true);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2586

    if ((TimerGetElapsed(libGame_gv_gameTimer) == 0.0)) {
        libGame_gv_gateTimerReady = false;
        if ((TimerIsPaused(libGame_gv_openTheGatesTimer) == false)) {
            TimerPause(libGame_gv_openTheGatesTimer, true);
            libStEx_gv_sE_TrainingModeTalentTeachingOpenTheGateTimerPaused = true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:5256


    if ((TimerGetRemaining(libGame_gv_openTheGatesTimer) > 0.0)) {
        if ((TimerIsPaused(libGame_gv_openTheGatesTimer) == true)) {
            TimerPause(libGame_gv_openTheGatesTimer, false);
            TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_8C0D6AED"), true);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:8125


    lv_requestedTimeChange = (lv_newTimeDelta-libSprt_gv_debug_GameTimeDelta);
    while (!((TimerIsPaused(libGame_gv_openTheGatesTimer) == false))) {
        Wait(1.0, c_timeGame);
    }

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:523

            TimerPause(lv_idleTimer, true);
        }
        else if ((OrderGetAbilityCommand(UnitOrder(lp_defenderUnit, 0)) == null) && (TimerIsPaused(lv_idleTimer) == true)) {
            lv_leashTarget = null;
            lv_lastClosestEnemy = null;

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:4670

    TriggerEnable(TriggerGetCurrent(), false);
    while (true) {
        if ((TimerIsPaused(libSCHO_gv_mMHO_AttackEventWarningTimer) == false) && (TimerGetRemaining(libSCHO_gv_mMHO_AttackEventWarningTimer) > 0.0)) {
            lv_state = libSCHO_ge_MMHOUIModes_ZergWarning;
            if ((lv_state != lv_lastState)) {

mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmodbase.stormdata/LibMSHE.galaxy:2281

    TriggerEnable(TriggerGetCurrent(), false);
    while (true) {
        if ((TimerIsPaused(libMSHE_gv_mMISShrineWarningTimer) == false) && (TimerGetRemaining(libMSHE_gv_mMISShrineWarningTimer) > 0.0)) {
            lv_state = libMSHE_ge_MMISUIModes_ShrineWarning;
            if ((lv_state != lv_lastState)) {

mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmodbase.stormdata/LibMSHE.galaxy:2290

            lv_lastState = lv_state;
        }
        else if ((TimerIsPaused(libMSHE_gv_mMISShrineTimer) == false) && (TimerGetRemaining(libMSHE_gv_mMISShrineTimer) > 0.0) && (libMSHE_gv_mMISShowOjectiveTimer == true)) {
            lv_state = libMSHE_ge_MMISUIModes_ShrineWarning;
            if ((lv_state != lv_lastState)) {

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:3103

    libMLCP_gf_MMSkyTempleUIShowHidePanel(true);
    while (true) {
        if ((TimerIsPaused(libMLCP_gv_mMSkyTempleBlessingWarningTimer) == false) && (TimerGetRemaining(libMLCP_gv_mMSkyTempleBlessingWarningTimer) > 0.0)) {
            lv_state = libMLCP_ge_MMSkyTempleUIState_Preparing;
            if ((lv_state != lv_lastState)) {

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:2323

    libNtve_gf_WaitForTimer(libMTOD_gv_mMToDPhaseTwoTimer, libMTOD_gv_mMToDPhaseTwoWarningTime_C, false);
    if ((libMTOD_gv_mMToDScoringAltarsActive == 0)) {
        if ((TimerIsPaused(libMTOD_gv_mMToDScoringAltarTimer) == false) && (TimerGetRemaining(libMTOD_gv_mMToDScoringAltarTimer) <= libMTOD_gv_mMToDPhaseTwoWarningTime_C)) {
            Wait((TimerGetRemaining(libMTOD_gv_mMToDScoringAltarTimer) + 1.0), c_timeGame);
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:2195

    }
    else {
        if ((TimerIsPaused(libGame_gv_players[lv_gallPlayer].lv_respawnTimer) == true)) {
            libAIAI_gf_AITeamDelegateModifyHeroStatusTokensforTeam(libAIAI_ge_AITeamDelegateAddRemoveLaneValue_Remove, libGame_gv_players[lv_gallPlayer].lv_aIHeroDelegateTokenValue, libGame_gf_TeamNumberOfPlayer(lv_gallPlayer), libAIAI_ge_AITeamDelegateLivingDeadHeroStatusUpdates_HeroAlive);
        }