Hello,
I am trying to get the Owner’s name when the actor dies, just so I can see who is destroyed. However, it crashes everything I try to do so. I have followed what I considered the normal procedure, but to no avail.
void ATankGameModeBase::ActorDied(AActor* DeadActor)
{
UE_LOG(LogTemp, Warning, TEXT("%s Died!"), *GetOwner()->GetName());
}
However, when I remove the GetOwner code, the problem leaves.
Is this because I am coding this wrong? I am of the opinion that it is because I am trying to call something up from the GameMode (something overhead) , which is supposed to reach down, not up to something the hierarchy.