Celestia/Celx Scripting/CELX Lua Methods/CEL command wait

From Wikibooks, open books for an open world
Jump to navigation Jump to search

wait[edit | edit source]

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> )

The following example pauses script execution for 15 ¼ seconds.


wait { duration 15.25 }

CELX with the wait() function:


Back to CEL command index