# Sandbox.Component.IDamageable.IEvents

Hits and deaths of damageables, for every component and system in the scene that implements it. A game
listens here to change, cancel and react to damage on things it did not write. Publishing is voluntary:
a damageable that does not raise these is invisible to listeners. One that does raises them on the host,
in this order: [Sandbox.Component.IDamageable.IEvents.OnDamaging](/api/Sandbox.Component.IDamageable.IEvents/OnDamaging), then if the hit was not cancelled it takes the damage and raises
[Sandbox.Component.IDamageable.IEvents.OnDamaged](/api/Sandbox.Component.IDamageable.IEvents/OnDamaged), then [Sandbox.Component.IDamageable.IEvents.OnDying](/api/Sandbox.Component.IDamageable.IEvents/OnDying) before a lethal hit commits the death, and
[Sandbox.Component.IDamageable.IEvents.OnDied](/api/Sandbox.Component.IDamageable.IEvents/OnDied) if the death was not cancelled.

- Kind: interface
- Assembly: `Sandbox.Engine`
- Modifiers: abstract

## Methods

- [`OnDamaged`](/api/Sandbox.Component.IDamageable.IEvents/OnDamaged): Something was hurt, before it dies if that killed it. The hit is settled: changes to it are ignored.
- [`OnDamaging`](/api/Sandbox.Component.IDamageable.IEvents/OnDamaging): Something is about to be hurt. Change the damage or the instigator, or cancel the hit.
- [`OnDied`](/api/Sandbox.Component.IDamageable.IEvents/OnDied): Something died. Nothing about the death can be changed.
- [`OnDying`](/api/Sandbox.Component.IDamageable.IEvents/OnDying): About to die. Cancel to keep the victim alive with at least 1 health, or suppress its ragdoll.
