For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityDieAfterEventSignal.md.

Class: EntityDieAfterEventSignal

event entity

Beta

Supports registering for an event that fires after an entity has died.

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Function to call when an entity dies.

options?

EntityEventOptions

Additional filtering options for when the subscription fires.

Returns

Returns the closure that can be used in future downstream calls to unsubscribe.

(arg0) => void

Remarks

Subscribes to an event that fires when an entity dies.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

Stops this event from calling your function when an entity dies.

同领域相关