Difference between revisions of "Lua:sleep"

From Cheat Engine
Jump to navigation Jump to search
(→‎Function Parameters)
(Neha)
Line 1: Line 1:
−
'''function''' sleep(''Delay'')
+
Ya learn smhoeting new everyday. It's true I guess!
−
 
 
−
Pauses the thread this lua script executes in for the given amount of milliseconds. (1000 milliseconds=1 second)
 
−
 
 
−
Note: Executing this from the main thread(gui) will make the gui stop responding for the given time (Buttons can not be clicked)
 
−
 
 
−
 
 
−
===Function Parameters===
 
−
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
−
!align="left"|Parameter
 
−
!align="left"|Type
 
−
!style="width: 80%;background-color:white;" align="left"|Description
 
−
|-
 
−
|Delay
 
−
|Integer
 
−
|The time to wait in milliseconds (1000=1 second)
 
−
|}
 
−
 
 
−
Example: Sleep(1000) -- This will pause the execution of current thread for 1 second.
 
−
 
 
−
== See also ==
 
−
* [[Lua]]
 

Revision as of 02:51, 14 May 2012

Ya learn smhoeting new everyday. It's true I guess!