C++ Equivalent of MoveTo node

Hi Guys,

How would I implement the MoveTo node in c++?

I have a c++ character class that inherits from ACharacter, and I want to be able to navigate around the navmesh in the scene.

I tried importing an AAIController class but I cant get the code to compile. Perhaps I’m including the wrong header (I’ve tried [#include “Classes/AIController.h”]).

Am I on the right track? Or do I call GetController() and cast it to an AIController? (I tried this but I couldn’t get it to compile, either).