diff --git a/RoomEscape/Source/RoomEscape/PositionReport.cpp b/RoomEscape/Source/RoomEscape/PositionReport.cpp index b295004..96e7a3d 100644 --- a/RoomEscape/Source/RoomEscape/PositionReport.cpp +++ b/RoomEscape/Source/RoomEscape/PositionReport.cpp @@ -20,10 +20,10 @@ UPositionReport::UPositionReport() void UPositionReport::BeginPlay() { Super::BeginPlay(); - FString ObjectName = GetOwner()->GetName(); + FString ObjectPos = GetOwner()->GetTransform().GetLocation().ToString(); - UE_LOG(LogTemp, Warning, TEXT("Position report for %s."), *ObjectName); + UE_LOG(LogTemp, Warning, TEXT("%s is at: %s"), *ObjectName, *ObjectPos); }