Alakazizam Posted August 28, 2023 Share Posted August 28, 2023 I'm wanting to interact with an object but not necessarily the closest one to me, any advice would be appreciated. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted August 28, 2023 Share Posted August 28, 2023 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))); 1 Quote Link to comment Share on other sites More sharing options...
Alakazizam Posted August 28, 2023 Author Share Posted August 28, 2023 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 Quote Link to comment Share on other sites More sharing options...