Add extra check
This commit is contained in:
parent
cb8ca1606a
commit
4c727e4a15
@ -49,10 +49,10 @@ UBehaviorTree* AEnemyCharacter::GetBehaviorTree()
|
||||
|
||||
void AEnemyCharacter::OnDamaged(FDamageInfo damageInfo)
|
||||
{
|
||||
if (OnDamagedSound)
|
||||
{
|
||||
// if (OnDamagedSound)
|
||||
// {
|
||||
UGameplayStatics::PlaySoundAtLocation(GetWorld(), OnDamagedSound, GetActorLocation());
|
||||
}
|
||||
// }
|
||||
|
||||
if (OnDamagedNiagaraSystem)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user