How do I get a pawn to move to a specific location?

I’m currently creating an enemy spawn point that will generate a bunch of skeleton mesh on the scene. I wish for them to travel to a specify location ( such as an actor ) on spawn. I tried various move to functions and can’t seem to get it to work. what is the minimum set of c++ functions I need to implement to achieve this?

Thanks in advance =)

#Tick Function

Put all of this in the Tick function for your Skeleton

#Direction to Goal Point

//Direction from Skeleton to MyCharacter
const FVector VectorDirection = MyCharacter->GetActorLocation() - MySkeleton->GetActorLocation();

//Normalize Vector so it is just a direction
VectorDirection.Normalize();

#CharacterMovement->Velocity

//Move 10 units toward the player, per tick
MySkeleton->CharacterMovement->Velocity += VectorDirection * 10;

#Animation

Because you are applying velocity and presumably you have a Animation Blueprint setup already that animations the character based on its velocity,

appropriate animations will play using my above code.

Start with Third Person Code Template if not sure about this

#Celebrate

Enjoy!

Rama

thanks a lot for this.