Looking backwards?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
spacedonkey
Posts: 10
Joined: 29.07.2005
With us: 19 years 2 months

Looking backwards?

Post #1by spacedonkey » 23.01.2006, 19:37

I want to produce a script so that I can fly from the earth to another planet changing the view to look back to the receeding earth.

I tried the command:

lookback()

..but it didn't seem to do anything.

Can anybody show me how to do this?

Thanks for any help.

cpotting
Posts: 164
Joined: 18.03.2004
Age: 62
With us: 20 years 6 months
Location: Victoria, BC Canada

Post #2by cpotting » 28.01.2006, 04:34

Cel Script

Code: Select all

select   { object "Sol/Earth" }
track    { }

see Chris' .Cel Scripting Guide

Celx Script

Code: Select all

track(celestia:find("Sol/Earth"))
Clive Pottinger
Victoria, BC Canada


Return to “Scripting”