Rockname 0 Share Posted July 8, 2017 private void openBank(){ GameObject bankChestObject = getGameObjects().closest(gameObject -> gameObject.getName().equals("Bank chest") && gameObject != null); if(!getMouse().click(bankChestObject.getClickablePoint())) sleepUntil(() -> getMouse().click(bankChestObject.getClickablePoint()), 10000); } I tried replacing it with gameObject.interact(); but it gave me same result. Sometimes it clicks on the object and sometimes it just does nothing and lets the timer run out. This is giving me headaches, any ideas? Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 8, 2017 Trying putting the null check first in your filter. Link to comment Share on other sites More sharing options...
Rockname 0 Author Share Posted July 8, 2017 Doesn't work, still same problem EDIT: The gameobject colliders are all bananas. When I'am far away from the gameobject the colliders are allign like this http://prntscr.com/ft4ruy. Weird.. But when I'am close to the gameobject it looks like this http://prntscr.com/ft4sby . How do I fix this??? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.