added name getting
This commit is contained in:
parent
3b0d5c7350
commit
81efae23cc
Binary file not shown.
Binary file not shown.
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user