I haven’t watched to the end of the video yet, but I think I did things a bit differently. It seems to work just fine though. Here is my code:
AActor* OurActor = GetOwner();
FString ObjectName = OurActor->GetName();
FVector ObjectLocation = OurActor->GetActorLocation();
UE_LOG(LogTemp, Warning, TEXT("%s is at x=%f, y=%f, z=%f"), *ObjectName,
ObjectLocation.X, ObjectLocation.Y, ObjectLocation.Z);