It seems that your project is missing AIModule
dependency. It has been already answered here
Regarding applying path following component to your player controller, you can’t just do that the same way it’s done for AIController
since PlayerController
doesn’t have a path following component out of the box. The SimpleMoveToLocation
function creates one for a given controller which boils down to spawning one in case of PlayerController
. You can modify this behavior to spawn your component by overriding AController::InitNavigationControl
in your player controller class.
Hope it helps!