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

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

timerate[edit | edit source]

timerate { rate <number> }

Set the multiplier (speed) at which time changes.


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

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


timerate { rate 1000 }

CELX with the celestia:settimescale() method:


Back to CEL command index