I am using a Blackboard key to store a Vector that my Pawn is supposed to move to through the Behavior Tree, but when I add a new location the pawn moves to the first location first and only then continues towards the new one instead of immediately switching directions.
I’ve tried using the Stop Movement node both immediately before and after changing the vector Key, but this results in a slight pause between movements which adds significant delay to any inputs that are supposed to change where the pawn is going and can slow down the pawn if the key is updated multiple times.
Is there any way to update the MoveTo location, or make a new Task, so that the pawn neither continues going towards the previous location nor stops, but starts going towards the new location instantly?
With this setup there’s a noticeable delay between when the pawn stops moving towards the old location and starts moving towards the new one, making it impossible for the pawn to react quickly and slowing it down to as much as half its normal speed if the location is changed too often. Putting the Stop Movement function before setting the key gives the exact same result.
Make a new task to move to next location. once it completes the sequence it will return to the first node and that will be considered the next location.