Hello, how to change destination of the AI MoveTo task while character still moving? I have a simple behaviour tree: Selector with Service to update Target Location variable in the Blackboard and child MoveTo task that uses this variable. Service works fine, but character don’t change direction until he get to the initial target point :
(- YouTube)
You can have a decorator that performs a conditional check for ‘target location changed’ or what ever change that will stop the movement is. In the decorator check ‘aborts self’.
This will cause that branch to detect when a change has been made to that decoration, making the branch abort and climb back up the tree.