roguehippo Posted June 29, 2016 Share Posted June 29, 2016 To describe the problem i have right now, my bot is supposed to walk somewhere and then do an action. it works fine apart from the fact that it has to finish the webwalking event and then after stopping for a second it then does the action. What im trying to do is have it do the action around 5 - 0 tiles away from the object. i even have the webwalking event inside a while loop "while(myPlayer().distance from object is greater than 5" yet it still waits for the whole event to finish. i was wondering if it is possible to stop the event around when in a certain distance from the point it is walking to. Quote Link to comment Share on other sites More sharing options...
Token Posted June 29, 2016 Share Posted June 29, 2016 Use setBreakCondition 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted June 29, 2016 Share Posted June 29, 2016 Event.setBreakCondition(new Condition () //blah on mobile Return obj.distance < 10; ); Quote Link to comment Share on other sites More sharing options...