aniki432789 Posted March 12, 2018 Share Posted March 12, 2018 (edited) Hello, I have a break condition set up for my WalkingEvent. It works absolutely perfectly when the player is walking, but when the player is running I feel like the program does not evaluate the break condition fast enough that it would be useful to me. The path itself is rather short so it makes sense to me that the problem mostly exists only when running. The WalkingEvent always finishes before advancing instead of breaking halfway. The objective is to simulate a more human-like interaction where a player starts walking towards an NPC and then. while it is still walking towards it, it interacts with the NPC. In the current state the player's character always stops (reaches the end of the path) for a period of time before interacting with the NPC. Again, the implementation works perfectly when the player's character is walking. Because of this I suspect the break condition is not evaluating fast enough for my scenario while the character is running. Is there anyway to enable the bot to evaluate the break condition more often? Is there a different way about solving my problem? Thank you for your time. Edited March 12, 2018 by aniki432789 Quote Link to comment Share on other sites More sharing options...
d0zza Posted March 12, 2018 Share Posted March 12, 2018 I really doubt this is the case, the break condition should be getting evaluated multiple times a second. If you could post your code for the WalkingEvent it'd be much easier to help you. Another option is to disable running for the WalkingEvent by setting the energy threshold to greater than 100 by using: walkingEvent.setEnergyThreshold(101); Quote Link to comment Share on other sites More sharing options...
Hel Posted March 12, 2018 Share Posted March 12, 2018 Are you sure you've set the break condition right? I use it all the time and have never had an issue with it. Quote Link to comment Share on other sites More sharing options...