August 28, 20232 yr I'm wanting to interact with an object but not necessarily the closest one to me, any advice would be appreciated.
August 28, 20232 yr 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)));
August 28, 20232 yr Author 7 hours ago, Khaleesi said: 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))); Wonderful, thank you
Create an account or sign in to comment