Script to "pause" time
-
Topic authorDollard Desmarais
- Posts: 28
- Joined: 09.10.2003
- With us: 21 years 1 month
- Location: Sechelt, B.C., Canada
Script to "pause" time
I would like to include a script in the start.cel file to pause time when Celestia opens. When showing off Celestia I like to zoom in to Sechelt. Unless time is stopped, the location labels are unsteady. This can be fixed by hitting the space bar. I would like to do this automatically by using a script. Can someone show me how to do this?
Re: Script to "pause" time
Dollard Desmarais wrote:I would like to include a script in the start.cel file to pause time when Celestia opens.[...] This can be fixed by hitting the space bar. I would like to do this automatically by using a script.
You can insert this line somewhere between the outer { ... } in start.cel (for instance at the second line):
Code: Select all
timerate { rate 0.0 }
But this is not the same as pressing the spacebar, i.e. you can't resume by presssing space again. Instead you have to set the timerate back to 1 by pressing "".
Harald
-
Topic authorDollard Desmarais
- Posts: 28
- Joined: 09.10.2003
- With us: 21 years 1 month
- Location: Sechelt, B.C., Canada