Move the Player's Character to a location without the control of the Player.

Hi!

I want to do the same that this node does, but in C++:

I want to move the player’s character to a location. I mean, when the player enters into a room there will be a trigger that makes the character moves to a location without the control of the player.

In Blueprint I did it with that node and a Nav Mesh, but in C++ I have no idea about how to do it.

The Player Character has this:

But, again, I have no idea how to use it to move it automatically to a location.

Any idea about how to do it?

Thank you!

Hello! If that blueprint snippet already works for you and you simply wish to do the same thing in C++, you can just call UAIBlueprintHelperLibrary::SimpleMoveToLocation() directly, or copy its contents to your own function elsewhere.

If you choose to call it directly, make sure to add AIModule as a dependency and include "Blueprint/AIBlueprintHelperLibrary.h".