EntityHealthChangedAfterEvent Class

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!

Properties

entity

read-only entity: Entity;

Entity whose health changed.

Type: Entity

newValue

read-only newValue: number;

New health value of the entity.

Type: number

oldValue

read-only oldValue: number;

Old health value of the entity.

Type: number