# Sandbox.Component.IDamageable.DyingEvent

A proposed death, passed to [Sandbox.Component.IDamageable.IEvents.OnDying](/api/Sandbox.Component.IDamageable.IEvents/OnDying) before death effects or ragdoll creation.

- Kind: class
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`DyingEvent`](/api/Sandbox.Component.IDamageable.DyingEvent/.ctor)

## Properties

- [`Cancelled`](/api/Sandbox.Component.IDamageable.DyingEvent/Cancelled): Cancel this death. The publisher restores at least 1 health.
- [`CreateRagdoll`](/api/Sandbox.Component.IDamageable.DyingEvent/CreateRagdoll): Whether to create the victim's usual ragdoll. For NPCs, this gates the base Die implementation's call to CreateRagdoll; custom death effects are unaffected.
- [`DamageInfo`](/api/Sandbox.Component.IDamageable.DyingEvent/DamageInfo): The original hit, or empty damage for a death without a hit.
- [`Instigator`](/api/Sandbox.Component.IDamageable.DyingEvent/Instigator): Who is responsible, as the hit settled.
- [`Victim`](/api/Sandbox.Component.IDamageable.DyingEvent/Victim): The victim, still alive while listeners decide.
