HitLook beta
Interface of @v12-engine/client
ts
export interface HitLookHow something reacts to a hit (UnitLook.onHit)
Members
at
ts
at?: string;A point of the model the effect plays at; its middle when left out
clip
ts
clip?: string | readonly string[];A clip it flinches with, by name, or one of several at random: played only where it does nothing else (a swing or a cast is not cut for it, ClipOptions.unlessBusy), on the part of the body the clip says (ClipDef.mask). The way it was struck from is the game's to read: onHit as a function has the hit (HitEvent.source)
flash
ts
flash?: [number, number, number] | {
color: [number, number, number];
time?: number;
};A colour over it for a moment (white, [1, 1, 1]), or for so long
fx
ts
fx?: string | FxDef;An effect where it is struck: at a point of its model (its middle when left out)
params
ts
params?: FxParams;Knobs given to the effect, over its own defaults
shake
ts
shake?: number;How hard the view shakes, about 1 for a big blast
sound
ts
sound?: string;A sound of the game's