Scripting/Squirrel/Functions/Timer.Delete: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(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...")
 
No edit summary
 
Line 21: Line 21:
   timer.Delete();
   timer.Delete();
}
}
</source>
== Related Functions ==
{{Scripting/Squirrel/Functions/Timer Functions}}
[[Category:Scripting/Squirrel/Functions/Timer_Functions]]

Latest revision as of 21:59, 30 January 2017

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.

function onScriptLoad()
{
   timer <- NewTimer("print",1000,0,"test");
}

function onScriptUnload()
{
   timer.Delete();
}

Related Functions