Page 1 of 1

Setting TimeRate to something other than 100 1000 etc.

Posted: 04.08.2003, 15:01
by don
How do I set the Time Rate to something other than 1x 100x 1000x, etc.?

The script below will set Celestia's Time Rate to 5x.

* Copy the text in the Code box
* Paste it into your texty editor
* Edit the "rate" value of "5.0" to be the Time Rate you want
* Save the file as "SetTimeRate.cel" into the Celestia directory
* Double click the filename -or- use Celestia's File/Open Script dialog to run it

If you double-click a .cel filename, Celestia will run that script. If Celestia is not currently running, it will be run automatically.

Code: Select all

{
#****************************************************************************
#*                 This Celestia Script Sets the Time Rate                  *
#****************************************************************************

# Set Time Rate (1x, 5x, 100x, 1000x, etc.)...
# (A negative value = Reverse time
#               1.0 = Real Time (default)
#            1000.0 = Good moon orbit motion)
    timerate { rate 5.0 }

#----------------------------------------------------------------------------
# End of Script - Let the user know the script is done running ...
#----------------------------------------------------------------------------

    print  { text "The script is finished."
             row  -2
             column 25
             duration 5 }

    wait   { duration 5 }

}