What is the correct way to use MoveToActor and RequestMove?

I wrote a simple AIController that finds player on tick and tries to follow him. But every time when I call MoveToActor it returns Failed, and RequestMove always return id -1. Is there any example on how to use them right?

Did you bake your navigation data?

If not:

  • Place a NavMeshBoundsVolume into the level.
  • Scale the bounds to the area you want. They use voxel-based Recast to generate their navmesh, so the larger the bounds the longer it will take to generate. This is important because it can regenerate at runtime.
  • Build Paths from the Compile menu.

Thanks, it worked!