# Sandbox.Component.IDamageable.IEvents.OnDying

```csharp
void OnDying(DyingEvent e)
```

About to die. Cancel to keep the victim alive with at least 1 health, or suppress its ragdoll.

### Parameters

- `e` (`DyingEvent`)

Declared in [Sandbox.Component.IDamageable.IEvents](/api/Sandbox.Component.IDamageable.IEvents).
Assembly: `Sandbox.Engine`.
