c++ move component/pawn to target location

Hey Guys,

I’m looking for a way to snap the pawn to a location when something happens or similar to this function:


UKismetSystemLibrary::MoveComponentTo(GetMesh(), target_position, FRotator::ZeroRotator, false, false, 5.0f, EMoveComponentAction::Move, Looll);

this is copied from code that calls blueprint (UKismet) function which i don’t want to call it but do it’s logic in my code. anyone know any way that will do similar thing like this kismet function? i was looking at the source code it’s using something called FLatentActionManager which is hard to understand what is going on there :).