Botre Posted March 17, 2016 Share Posted March 17, 2016 Is there a cleaner way than the following snippet to set the timeout of a WalkingEvent? While we're at it, what is the default timeout for a WalkingEvent? (walkingTimer is a timer class) walkingTimer.reset(); WalkingEvent walkingEvent = new WalkingEvent(voidKnightArea); walkingEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return walkingTimer.getElapsedSeconds() > 10; } }); execute(walkingEvent); Cheerseroni Quote Link to comment Share on other sites More sharing options...
Extreme Scripts Posted March 17, 2016 Share Posted March 17, 2016 Not another one Quote Link to comment Share on other sites More sharing options...
Botre Posted March 17, 2016 Author Share Posted March 17, 2016 Not another one Quote Link to comment Share on other sites More sharing options...
iJodix Posted March 17, 2016 Share Posted March 17, 2016 @FrostBug Quote Link to comment Share on other sites More sharing options...