# Restart Timer
Grammar — Restart t
Flags —Native
|Action
Restarts the timer specified to it’s original time.
# Arguments
timer
— Timer
Returns — void
native void TimerRestart(timer t);
# Related
Category: Timer / Timers
- Set Score Timer —
void
— SetScoreTimer - Time Elapsed —
void
— TriggerAddEventTimeElapsed - Periodic Event —
void
— TriggerAddEventTimePeriodic - Start Timer —
void
— TimerStart - Last Started Timer —
timer
— TimerLastStarted - Restart Timer —
void
— TimerRestart - Pause/Unpause Timer —
void
— TimerPause - Stop Timer —
void
— libNtve_gf_StopTimer - Timer Is Paused —
bool
— TimerIsPaused - New Timer —
timer
— TimerCreate - Duration Of Timer —
fixed
— TimerGetDuration - Timer Expires —
void
— TriggerAddEventTimer - Triggering Timer —
timer
— EventTimer
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1125
}
TimerRestart(gv_timer_Legs);
PortraitSetVisible(libNtve_gf_CinematicPortrait(4), PlayerGroupAll(), false, false);
gf_HideReplayTransmissionButtons();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1125
}
TimerRestart(gv_timer_Legs);
PortraitSetVisible(libNtve_gf_CinematicPortrait(4), PlayerGroupAll(), false, false);
gf_HideReplayTransmissionButtons();
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:1104
// Implementation
if ((gv_reminderTimer != null)) {
TimerRestart(gv_reminderTimer);
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:1104
// Implementation
if ((gv_reminderTimer != null)) {
TimerRestart(gv_reminderTimer);
}
else {
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2537
}
TimerRestart(gv_targetDummyResetTimer);
libNtve_gf_StopTimer(gv_targetDummyHideUITimer);
gv_targetDummyRespawnAllowed = false;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2605
gv_targetDummyDoNotUpdateNumbers = true;
TimerRestart(gv_targetDummyAnyDummyInCombatTimer);
TimerPause(gv_targetDummyAnyDummyInCombatTimer, true);
TimerRestart(gv_targetDummyResetTimer);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2607
TimerRestart(gv_targetDummyAnyDummyInCombatTimer);
TimerPause(gv_targetDummyAnyDummyInCombatTimer, true);
TimerRestart(gv_targetDummyResetTimer);
TimerPause(gv_targetDummyResetTimer, true);
gv_targetDummyDamageTotal = 0.0;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2537
}
TimerRestart(gv_targetDummyResetTimer);
libNtve_gf_StopTimer(gv_targetDummyHideUITimer);
gv_targetDummyRespawnAllowed = false;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2605
gv_targetDummyDoNotUpdateNumbers = true;
TimerRestart(gv_targetDummyAnyDummyInCombatTimer);
TimerPause(gv_targetDummyAnyDummyInCombatTimer, true);
TimerRestart(gv_targetDummyResetTimer);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2607
TimerRestart(gv_targetDummyAnyDummyInCombatTimer);
TimerPause(gv_targetDummyAnyDummyInCombatTimer, true);
TimerRestart(gv_targetDummyResetTimer);
TimerPause(gv_targetDummyResetTimer, true);
gv_targetDummyDamageTotal = 0.0;