Contains information related to an entity when its health changes. Warning: don't change the health of an entity in this event, or it will cause an infinite loop!
export class EntityHealthChangedAfterEvent { private constructor(); readonly entity: Entity; readonly newValue: number; readonly oldValue: number;} Copy
export class EntityHealthChangedAfterEvent { private constructor(); readonly entity: Entity; readonly newValue: number; readonly oldValue: number;}
Private
Readonly
Entity whose health changed.
This property can't be read in early-execution mode.
New health value of the entity.
Old health value of the entity.
Contains information related to an entity when its health changes. Warning: don't change the health of an entity in this event, or it will cause an infinite loop!
Source