Purpose

Cancels a timer.

Syntax

void CancelTimer(string name);

  • name : The string name identifier that you specified in Timer().

Example

function Init() { 
    Timer(1.0, myTimerFunction, name='secondTimer', true);
    CancelTimer('secondTimer');
}

function myTimerFunction() {
    Log("never gets called");
}