<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Global_Command%3A_setDelay</id>
		<title>Global Command: setDelay - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Global_Command%3A_setDelay"/>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setDelay&amp;action=history"/>
		<updated>2026-05-25T16:07:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setDelay&amp;diff=11864&amp;oldid=prev</id>
		<title>EK: Created page with &quot;Executes a function with a delay.   == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; setDelay(time, callback) &lt;/syntaxhighlight&gt;   == Parameters ==  {| class=&quot;ts&quot; |- ! style=&quot;width:1...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setDelay&amp;diff=11864&amp;oldid=prev"/>
				<updated>2023-05-02T23:11:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Executes a function with a delay.   == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; setDelay(time, callback) &amp;lt;/syntaxhighlight&amp;gt;   == Parameters ==  {| class=&amp;quot;ts&amp;quot; |- ! style=&amp;quot;width:1...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Executes a function with a delay.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
setDelay(time, callback)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; | Parameter&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| time&lt;br /&gt;
| integer&lt;br /&gt;
| Time to wait until the callback function gets executed (in milliseconds).&lt;br /&gt;
|-&lt;br /&gt;
| callback&lt;br /&gt;
| function/string&lt;br /&gt;
| Callback function to execute.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Return values ==&lt;br /&gt;
&lt;br /&gt;
none&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
'''Example 1:''' Different ways of printing &amp;quot;Hello World&amp;quot; with a delay of 1 second.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function helloWorld()&lt;br /&gt;
  print(&amp;quot;Hello World&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Call the &amp;quot;helloWorld()&amp;quot; function&lt;br /&gt;
setDelay(1000, &amp;quot;helloWorld()&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Another way to call the &amp;quot;helloWorld()&amp;quot; function&lt;br /&gt;
setDelay(1000, helloWorld)&lt;br /&gt;
&lt;br /&gt;
-- Use an anonymous function as the second argument&lt;br /&gt;
setDelay(1000, function() print(&amp;quot;Hello World&amp;quot;) end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>	</entry>

	</feed>