Jump to content

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

From Wikibooks, open books for an open world

timerate

[edit | edit source]

timerate { rate <number> }

Set the multiplier (speed) at which time changes.

Arguments:

rate <number>
Defines the time multiplier (i.e. 100x). Default is 1.0.
Special values:
  • 0 is Pause time
  • 1 is Reset to Real Time
  • Negative values reverse time


CELX equivalent:

Based on the celestia:settimescale() method.

  • Set the timescale (how many seconds of simulation time equal one second of real time).
    <number> is the new timescale.
celestia:settimescale( <number> )

Example:
This example sets the time multiplier to "1000x faster".

CEL:

timerate { rate 1000 }

CELX with the celestia:settimescale() method:

celestia:settimescale(1000)


Back to CEL command index