Forums » Suggestions

Lua - ForEachSectorObject()

Dec 08, 2022 draugath link
I would like to request a function that behaves like ForEachPlayer(), but instead it iterates over sector objects within radar range. This should probably be limited to only returning asteroids and cargo.

This would simplify the process of trying to find nearby objects for targeting or acquisition.
Dec 10, 2022 draugath link
Looking back in the history, I also found this related thread.
Lua API: New functions related to objects within radar range.