EntityHealthChangedAfterEventSignal Class

Manages callbacks that are connected to when the health of an entity changes.

Methods

subscribe

subscribe(callback: (arg: EntityHealthChangedAfterEvent) => void, options?: EntityEventOptions): (arg: EntityHealthChangedAfterEvent) => void

Adds a callback that will be called when the health of an entity changes.

Parameters

Returns (arg: EntityHealthChangedAfterEvent) => void

Important

This function can't be called in read-only mode.

unsubscribe

unsubscribe(callback: (arg: EntityHealthChangedAfterEvent) => void): void

Removes a callback from being called when the health of an entity changes.

Parameters

Important

This function can't be called in read-only mode.

Warning

This function can throw errors.