add location logging

This commit is contained in:
Tyrel Souza 2018-02-18 23:56:49 -05:00
parent 81efae23cc
commit a6fcdf631f

View File

@ -20,10 +20,10 @@ UPositionReport::UPositionReport()
void UPositionReport::BeginPlay() void UPositionReport::BeginPlay()
{ {
Super::BeginPlay(); Super::BeginPlay();
FString ObjectName = GetOwner()->GetName(); 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);
} }