Add extra check

This commit is contained in:
baz 2025-06-24 16:24:06 +01:00
parent cb8ca1606a
commit 4c727e4a15

View File

@ -49,10 +49,10 @@ UBehaviorTree* AEnemyCharacter::GetBehaviorTree()
void AEnemyCharacter::OnDamaged(FDamageInfo damageInfo)
{
if (OnDamagedSound)
{
// if (OnDamagedSound)
// {
UGameplayStatics::PlaySoundAtLocation(GetWorld(), OnDamagedSound, GetActorLocation());
}
// }
if (OnDamagedNiagaraSystem)
{