EntityHitEntityAfterEventSignal Class

Manages callbacks that are connected to when an entity makes a melee attack on another entity.

Methods

subscribe

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

Adds a callback that will be called when an entity hits another entity.

Parameters

Returns (arg: EntityHitEntityAfterEvent) => void

Important

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

unsubscribe

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

Removes a callback from being called when an entity makes a melee attack on another entity.

Parameters

Important

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

Warning

This function can throw errors.