Flying Low 2 Posted September 8, 2016 1. Radius Searched What radius does the call to Interactables closest(Filter<T> filter) search? Just wondering how many tiles away the search goes. 2. Walking To Search Result If I get a result from closest(Filter<T> filter), do I need to walk to that entity before interacting with it? I've seen code that first walks to it, if it is not on screen, and then interacts. But I have seen other code which simply interacts with it, without walking to it first.
Nuclear Nezz 2094 Posted September 8, 2016 closest loads everything and gives you the closest that is loaded. interact will walk to it on its own if it's off screen, it'll attempt to rotate camera and then if it still fails it will walk to it, but it'd be better for you to do the check on your own. If you're not near it, walk to it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.