Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Radius of closest()


    Flying Low

    Recommended Posts

    Posted

    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.

    Posted

    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.

    Posted

    you should open up the game debugger to see what can be loaded

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.