Page 1 of 1
Script to "pause" time
Posted: 25.08.2004, 22:59
by Dollard Desmarais
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
Posted: 26.08.2004, 11:18
by Harry
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):
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
Posted: 26.08.2004, 12:55
by Dollard Desmarais
Thanks for the response Harald. After mulling over this, and following up on a suggestion in a private message from Don, I think the best solution to prevent quivering of the labels is to replace the script:
follow {}
with the script:
synchronous {}