Also, under object:getinfo() the documentation refers to a "location object" as if some objects are a different class of object.
Please give some help to the terminally confused.

Henry
hharris wrote:I'd be grateful if someone could explain the Celestia "obs:getlocationflags()". I can't get it to work, probably because I don't understand it. I would think locations would attached to an object, and not an observer. But when I make the call on the observer object as documented, I don't seem to get a table.
Also, under object:getinfo() the documentation refers to a "location object" as if some objects are a different class of object.
Please give some help to the terminally confused.![]()
Code: Select all
function log_locations(x)
for loc in x:locations() do
celestia:log(loc:name())
end
end
log_locations(celestia:getselection())