added name getting

This commit is contained in:
Tyrel Souza 2018-02-18 23:32:47 -05:00
parent 3b0d5c7350
commit 81efae23cc
3 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -2,6 +2,8 @@
#include "PositionReport.h" #include "PositionReport.h"
#include "RoomEscape.h"
#include "GameFramework/Actor.h" // See auto completes
// Sets default values for this component's properties // Sets default values for this component's properties
UPositionReport::UPositionReport() UPositionReport::UPositionReport()
@ -18,7 +20,10 @@ UPositionReport::UPositionReport()
void UPositionReport::BeginPlay() void UPositionReport::BeginPlay()
{ {
Super::BeginPlay(); Super::BeginPlay();
UE_LOG(LogTemp, Warning, TEXT("Position report reporting for duty on chair"));
FString ObjectName = GetOwner()->GetName();
UE_LOG(LogTemp, Warning, TEXT("Position report for %s."), *ObjectName);
} }