Перейти к основному содержимому

Interface: EntityHurtBeforeEvent

Cancelable event fired before damage is applied to an entity.

Properties

cancel

cancel: boolean

Set to true before the handler returns to cancel the action.


cause

readonly cause: DamageCause

Normalized cause understood by the current QuestScript surface.


damage

readonly damage: number

Damage amount that would be applied.


damagingEntity

readonly damagingEntity: Entity | null

Attacking entity, or null when there is no entity source.


entity

readonly entity: Entity

Entity that would receive the damage.