Scripting/Squirrel/Functions/Timer.Delete

From Vice City Multiplayer
Revision as of 14:17, 14 August 2016 by Anik (talk | contribs) (Created page with "== Syntax == <pre>Timer.Delete</pre> == Arguments == '''Timer''' - The instance of the timer. == Example == This example will create a timer when the script loads and del...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Syntax

Timer.Delete

Arguments

Timer - The instance of the timer.

Example

This example will create a timer when the script loads and deletes it when it unloads.

<source lang=squirrel> function onScriptLoad() {

  timer <- NewTimer("print",1000,0,"test");

}

function onScriptUnload() {

  timer.Delete();

}