Private
constructorFunction to call when an entity dies.
Optional
options: EntityEventOptionsAdditional filtering options for when the subscription fires.
Optional
Returns the closure that can be used in future downstream calls to unsubscribe.
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.
Subscribes to an event that fires when an entity dies.
This function can't be called in read-only mode.
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.