Jump to content

interacting with an object at specific coordinates.


Recommended Posts

Posted
2 hours ago, Alakazizam said:

I'm wanting to interact with an object but not necessarily the closest one to me, any advice would be appreciated.

Use a filter, filter only the object at that certain position with a specific name for example :)

RS2Object tree = getObjects().closest(object -> object.getName().equals("Tree") && object.getPosition().equals(new Position(3305, 3000, 0)));

 

  • Heart 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...