Celestia/Celx Scripting/CELX Lua Methods/CEL command wait
Appearance
wait
[edit | edit source]wait { duration <number> }
Pauses execution of the script for the specified <number> in seconds.
Arguments:
- duration <number>
- Number of seconds to pause execution of the script. Default is 1.0 second.
CELX equivalent:
Based on the wait() function.
- The function wait( <number> ) is predefined in Celestia to wait <number> seconds.
It is special because it returns control to Celestia, which you have to do to avoid blocking Celestia.
wait( <number> )
Example:
The following example pauses script execution for 15 ΒΌ seconds.
CEL:
wait { duration 15.25 }
CELX with the wait() function:
wait(15.25)