Class: EntityHitEntityAfterEventSignal
Manages callbacks that are connected to when an entity makes a melee attack on another entity.
Constructors
new EntityHitEntityAfterEventSignal()
private
new EntityHitEntityAfterEventSignal():EntityHitEntityAfterEventSignal
Returns
EntityHitEntityAfterEventSignal
Methods
subscribe()
subscribe(
callback
,options
?): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
options ? | EntityEventOptions |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | EntityHitEntityAfterEvent |
Returns
void
Remarks
Adds a callback that will be called when an entity hits another entity.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Remarks
Removes a callback from being called when an entity makes a melee attack on another entity.
This function can't be called in read-only mode.
Throws
This function can throw errors.