Die On Take Damage

Component > Dialogue System > Actor > Die On Take Damage

Die On Take Damage destroys the GameObject if it receives a "TakeDamage" or "Damage" message, optionally replacing it with a different prefab.

Properties

Property Function
Dead Prefab Prefab to instantiate in the GameObject's place when it dies

Details

This component is used by the example scenes. If the GameObject receives the message TakeDamage(float) or Damage(float), it destroys the GameObject and replaces it with the Dead Prefab (if assigned).


<< Components