GroundTrigger beta
Interface of @v12-engine/engine
ts
export interface GroundTriggerA ground object's trap, mine or pickup (UnitTypeDef.trigger), in a game with the ground objects pack
Members
ability
ts
ability: string;The ability whose effects go off: in the name of whoever put it down (its maker, a spawn of the pack's: the object's own where there is none or it is gone), the one who came its target, the object where they go off from (EffectContext.origin), at the level it was put down at
arm
ts
arm?: number;Seconds after it is put down before it works (a mine arming): at once when left out
by
ts
by?: 'enemies' | 'allies' | 'all' | 'maker';Who sets it off: enemies of its owner (when left out), allies, all, or its maker alone (a soul, a chime)
radius
ts
radius?: number;How near its edge one comes for it to go off: 1 when left out
times
ts
times?: number;Times it goes off before it is gone: once when left out, for ever with 0