Difference between revisions of "Lua:sleep"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' sleep(''Delay'') Pauses the thread this lua script executes in for the given amount of milliseconds. (1000 milliseconds=1 second) ===Function Parameters=== {|wi…')
 
Line 2: Line 2:
  
 
Pauses the thread this lua script executes in for the given amount of milliseconds. (1000 milliseconds=1 second)
 
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)
  
  

Revision as of 10:10, 25 February 2012

function sleep(Delay)

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

Parameter Type Description
Delay Integer The time to wait in milliseconds (1000=1 second)


See also