Beta
Beta
Function to call when an entity dies.
Optional
options: EntityEventOptionsAdditional filtering options for when the subscription fires.
Returns the closure that can be used in future downstream calls to unsubscribe.
Subscribes to an event that fires when an entity dies.
This function can't be called in read-only mode.
Beta
Stops this event from calling your function when an entity dies.
This function can't be called in read-only mode.
Supports registering for an event that fires after an entity has died.