From a6fcdf631fd9e25d30544ee38279af1c73ced8cc Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Sun, 18 Feb 2018 23:56:49 -0500 Subject: [PATCH] add location logging --- RoomEscape/Source/RoomEscape/PositionReport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }