Move to location works only when I recompile it

Hello,

I’m new to UE5 and I’m trying to move an actor with the mouse like a RTS :

I created a BP_Creature that I can select. When it’s selected, a right click should move it to the mouse location.

My event called by the right click :

My moving function from the BP_Creature :

When I remove the link between GetAIController and the MoveToLocation, I save and compile then reset the link and try my game, the movement works. If I close the game and rerun, it’ doesn’t work anymore. Even if I don’t make any modification.

I have to redo the same manipulation as explained before to make it work. So I’m asking myself : is it a bug ? Am I doing it wrong ?

hi, did you try ai move to bp node?

Hi,

Thanks for your answer

I couldn’t create AiMoveTo inside my function so I recreated it in the graph editor but it always return fail. When I put a break point, “movement result” is “aborted”

hi, it has to do something with destination vector i believe. can u give some other location and see if ai move to works? first ai move to node to success, is what we should see i think ..