Celestia/Celx Scripting/CELX Lua Methods/CEL command wait
< Celestia < Celx Scripting < CELX Lua Methodswait
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)
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.