(moveTo task) how to make it go to desired location

I am trying to get it to move to a specified location but it never goes to the right location. it just seems to go to some random one. I tried both the normal task or using the blueprint node with a custom task both do the same. i attached a basic project demonstrating the problem.

is this a bug?

Here is a simple project demonstrating the problem:

[movetotest2.zip][3]

Hey fsk,

I found the issue here. You were dragging a new “Random Reachable Point in Radius” into your Draw Debug Line node. This would mean that GetRandomReachablePointInRadius would be called a second time when the Draw Debug Line function is called, giving you a different value.

What you needed to be doing instead is getting the value of your blackboard key, which has the stored value of GetRandomReachablePointInRadius in it that you are using to MoveTo, and then draw a line at that location, as shown below:

This will ensure that you are printing out the same value that is stored in your Blackboard Key instead of grabbing a new value from the GetRandomReachablePointInRadius node to draw the line at.

Making those changes to your Blueprint will resolve the issue for you.

Have a great day