Skip to main content

Class: EntityHealthChangedAfterEventSignal

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

Constructors

new EntityHealthChangedAfterEventSignal()

private new EntityHealthChangedAfterEventSignal(): EntityHealthChangedAfterEventSignal

Returns

EntityHealthChangedAfterEventSignal

Methods

subscribe()

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

Parameters

ParameterType
callback(arg) => void
options?EntityEventOptions

Returns

Function

Parameters
ParameterType
argEntityHealthChangedAfterEvent
Returns

void

Remarks

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

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


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

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

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

Throws

This function can throw errors.