Mark all stars within a 40ly radius?
Posted: 12.12.2017, 16:06
Can someone provide an example of a working script for this?
I was thinking it could be done by
or
I was thinking it could be done by
- setting initial number to 1 and cycling through all the stars in celestia:getstar()
- using celestia:getobserver():gedistanceto() star
- use an if statement to decide whether to mark, i.e. whenever the distance is smaller than 40 million millionths of a light year
- increment the star number by one and repeat until it reaches 120404
or
- set celestia:setstardistancelimit(40)
- cycle through stars in celestia:getstar()
- if star:visible() is true then mark it
- increment star number by one until 120404