I wrote:
#include “Gameframework/Actor.h” (in the beggining as Sam told)
and
FString ObjectName = GetOwner()->GetName();
UE_LOG(LogTemp, Warning, TEXT(“Position report for %s!”), *ObjectName);
and it’s still appearning me the chair twice in the logs.
Another question:
FString ObjectName = GetOwner()->GetName();
This is supposed to get all the objects in our game? i didn’t understand that.