Rumple Posted March 6, 2019 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); }
extatus Posted March 6, 2019 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
Dab in a Lab Posted March 6, 2019 Posted March 6, 2019 Like @extatus said. Try if (obsticle != null) { obsticle.interact(); }
Rumple Posted March 7, 2019 Author 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.