Alakazizam Posted August 28, 2023 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.
Khaleesi Posted August 28, 2023 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
Alakazizam Posted August 28, 2023 Author 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