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

< Celestia < Celx Scripting < CELX Lua Methods

wait

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.

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.