411 REFERENCE · Wikibooks
Celestia/Celx Scripting/CELX Lua Methods/CEL command wait
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
wait
wait { duration <number> }
Pauses execution of the script for the specified <number> in seconds.
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)
Back to CEL command index