DoEvents
Usage:
DoEvents([Time])
Description:
The DoEvents command will yield the CPU to allow other scripts and server events to update. This is useful for scripts which poll something constantly, to avoid locking up the server. You may also use it to pause your script for a certain length of time.
The optional Time parameter is the minimum time (in milliseconds) which must elapse before the script may continue running. If this is ignored or set to zero, the script will continue running as soon as all other events have been processed by the server.
Example:
Function Main()
Output(Actor(), "Hello!")
DoEvents(1000) // Pause for a second
Output(Actor(), "Hello again!")
Return()
Comments (0)
You don't have permission to comment on this page.