Rumple Posted March 6, 2019 Share Posted March 6, 2019 So i have to click an object that has not interaction. it must be clicked on in order to jump over and gain exp. my function not working idk why not. if(obsticle != null){ getMouse().click((obsticle.getPosition().getX()),(obsticle.getPosition().getY()),true); } Quote Link to comment Share on other sites More sharing options...
Turkoize Posted March 6, 2019 Share Posted March 6, 2019 could it be perhaps you spelled obstacle wrong? 2 Quote Link to comment Share on other sites More sharing options...
Rumple Posted March 6, 2019 Author Share Posted March 6, 2019 no that is my var i used. Quote Link to comment Share on other sites More sharing options...
extatus Posted March 6, 2019 Share Posted March 6, 2019 (edited) sure that .interact() method doesnt work?- u can leave empty parenthesis also mouse.click should be false if youre trying to left click if nothing works just make entitydestination Edited March 6, 2019 by extatus Quote Link to comment Share on other sites More sharing options...
Dab in a Lab Posted March 6, 2019 Share Posted March 6, 2019 Like @extatus said. Try if (obsticle != null) { obsticle.interact(); } Quote Link to comment Share on other sites More sharing options...
Rumple Posted March 7, 2019 Author Share Posted March 7, 2019 6 hours ago, extatus said: sure that .interact() method doesnt work?- u can leave empty parenthesis also mouse.click should be false if youre trying to left click if nothing works just make entitydestination 6 hours ago, Dab in a Lab said: Like @extatus said. Try if (obsticle != null) { obsticle.interact(); } Thanks guys. I did not know if i left it blank it would just click the object. Quote Link to comment Share on other sites More sharing options...