How to Inflict Damage from Non-character Objects

I am trying to work out how to damage my player from an animated environmental object, for example a fan. I can damage him by attaching a Damage Zone Script to the object, but this does not cause the damage visualization animations to play (I tried to also attach a state trigger component set to trigger Take Damage, to see if this would work, but it does not). So the question is really how to also play damage visualization animations?


Staff member
The Damage Visualization ability listens for the OnHealthDamage event so if you call the regular Damage method on the Health component then that should work: