I’m creating a simple move to function that plays a walk animation as the character moves to the destination. When I’m debugging and watching within the loop, I notice the distance never updates. Is it code running continuously and not frame by frame?
Disregarding your disconnected nodes there, try bypassing the “Play Animation” node.
That being said, all of this is told to execute one time, so it will only update the value one time- when the “walk to” function is called.
Do you need it constantly updated? The acceptance radius (don’t set it to a negative value) will have the actor stop when its root reaches within the distance of the target’s root. It will return “Success” or “Failure” based on whether or not it can enter the acceptance radius, so right now it will always return as a failure.
If you need it constantly updated you can use a timer with a bound event to run parallel to this!
Hope that helps!