Manages callbacks that are connected to when an entity is hurt.
export class EntityHurtAfterEventSignal { private constructor(); subscribe( callback: (arg0: EntityHurtAfterEvent) => void, options?: EntityHurtAfterEventOptions, ): (arg0: EntityHurtAfterEvent) => void; unsubscribe(callback: (arg0: EntityHurtAfterEvent) => void): void;} Copy
export class EntityHurtAfterEventSignal { private constructor(); subscribe( callback: (arg0: EntityHurtAfterEvent) => void, options?: EntityHurtAfterEventOptions, ): (arg0: EntityHurtAfterEvent) => void; unsubscribe(callback: (arg0: EntityHurtAfterEvent) => void): void;}
Private
Optional
Adds a callback that will be called when an entity is hurt.
no-restricted-execution - This function can't be called in restricted-execution mode.
early-execution-allowed - This function can be called in early-execution mode.
Removes a callback from being called when an entity is hurt.
Manages callbacks that are connected to when an entity is hurt.
Source