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?
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;