AI Controller MoveTo Function Isnt working from C++

Hello guys, i really need help
EnemyController->MoveTo(MoveRequest); doesn’t work anymore
since i updated UE to 5.3 the AI Controller MoveTo Function keeps giving me this compile error:
|Error|C2027|use of undefined type ‘FPathFollowingRequestResult’.
searched this struct but it didnt show anything unusual
it used to work and i have no idea where is the problem, tbh digging down into engine classes doesnt help since they are locked and i dont think theres anything that needs to be changed in them

2 Likes

I ran into this same issue. When looking into the documentation for FPathFollowingRequestResult it showed to : include “Navigation/PathFollowingComponent.h”. After I did that it seems to have worked.

I had issues with FNavigationPath as well so I have to add a Navigation module as well as another header file: include “NavigationData.h”. Again, after I added these few things it all seems to work fine.

8 Likes

exactly, i figured it out after a while & forgot to delete this post…
Still thanks for the reply!

thanks, that work for me . im using UE 5.4.3

This works, thanks!