How I got the actor locations. S03-68

FVector ObjectPos = GetOwner()->GetActorLocation();
//instructor alternative : GetTransform().GetLocation().ToString();
UE_LOG(LogTemp, Warning, TEXT("%s is at %s"), *ObjectName, *ObjectPos.ToString());

Privacy & Terms