Solution to get the location X, Y and Z of the Actor
FVector ObjectPos = GetOwner()->GetActorLocation();
UE_LOG(LogTemp, Warning, TEXT("%s is at X=%f, Y=%f, Z=%f!"), *ObjectName, ObjectPos.X, ObjectPos.Y, ObjectPos.Z);
Solution to get the location X, Y and Z of the Actor
FVector ObjectPos = GetOwner()->GetActorLocation();
UE_LOG(LogTemp, Warning, TEXT("%s is at X=%f, Y=%f, Z=%f!"), *ObjectName, ObjectPos.X, ObjectPos.Y, ObjectPos.Z);