if (APawnTurret* DestroyedTurret = Cast(DeadActor)) { DestroyedTurret->TurretSpecificDead(); }