EffectAddBeforeEvent Class

Contains information related to changes to an effect - like poison - being added to an entity.

Properties

cancel

cancel: boolean;

When set to true will cancel the event.

Type: boolean

duration

duration: number;

Effect duration.

Type: number

effectType

read-only effectType: string;

The type of the effect that is being added.

Type: string

entity

read-only entity: Entity;

Entity that the effect is being added to.

Type: Entity