https://db.nomad-group.net/index.php?title=Timer.Simple&feed=atom&action=historyTimer.Simple - Revision history2024-03-29T06:40:46ZRevision history for this page on the wikiMediaWiki 1.34.1https://db.nomad-group.net/index.php?title=Timer.Simple&diff=638&oldid=prevJan: Created page with "Creates a simple unnamed Timer which is executed once after the time has elapsed. == Syntax == <syntaxhighlight lang="lua"> timer.Simple(duration, callback[, ...]) </syntaxhi..."2020-08-03T09:19:28Z<p>Created page with "Creates a simple unnamed Timer which is executed once after the time has elapsed. == Syntax == <syntaxhighlight lang="lua"> timer.Simple(duration, callback[, ...]) </syntaxhi..."</p>
<p><b>New page</b></p><div>Creates a simple unnamed Timer which is executed once after the time has elapsed.<br />
<br />
== Syntax ==<br />
<syntaxhighlight lang="lua"><br />
timer.Simple(duration, callback[, ...])<br />
</syntaxhighlight><br />
* '''duration:''' number (in seconds)<br />
* '''callback:''' function (to invoke after the timer elapsed)<br />
* [...]: varargs (any amount of parameters that should be passed to the callback)<br />
** function call: callback([...])<br />
* '''Returns:''' Timer instance (can be used with [[timer.Remove]])<br />
<br />
== Example ==<br />
<syntaxhighlight lang="lua"><br />
timer.Simple(1, function()<br />
print("1 Second elapsed")<br />
end)<br />
</syntaxhighlight><br />
<br />
== Related Pages ==<br />
* [[timer.Create]]<br />
* [[timer.Remove]]</div>Jan