411 REFERENCE · Wikibooks
Celestia/Celx Scripting/CELX Lua Methods/CEL command timerate
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
timerate
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> )
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