UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"teleport player from one place to other"
void APlayerController::TeleportToLocation(FVector Location) { // Get the current pawn APawn* Pawn = GetPawn(); if (Pawn) { // Teleport the pawn to the new location Pawn->SetActorLocation(Location); } }