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.
| Property | Function |
|---|---|
| Dead Prefab | Prefab to instantiate in the GameObject's place when it dies |
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