Skip to content

PartTiming beta ​

Interface of @v12-engine/client

ts
export interface PartTiming

When a part of an effect starts, how long it lasts, and where it is, besides what the part is

Members ​

at ​

ts
at?: number;

Seconds into the effect it starts: 0 when left out. After the clip's mark when there is a mark (and the effect knows it)

for ​

ts
for?: Param<number>;

Seconds it lasts: as long as the effect when left out (or as long as itself, for what is over by itself: a burst, a sound). Read from the knobs as it starts ((p) => p.time)

mark ​

ts
mark?: string;

A mark of the clip the unit the effect is on is playing (ClipDef.marks: hit, or the model's own), which the part waits for: it starts at seconds after the mark is reached, so a spark lands with the blow. At the effect's start, plus at, where the effect is not played on a unit in a clip with such a mark to come

offset ​

ts
offset?: Param<readonly [number, number, number]>;

How far from where the effect is, in world units: up is y

orbit ​

ts
orbit?: Param<FxOrbit>;

Going round where it is (FxOrbit): a ribbon of light circling a unit, a strand of a braid climbing it, sparkles at its head. Still when left out

path ​

ts
path?: FxPath;

Its way of its own, in code (FxPath): where it is every frame from where the effect is, after orbit. Still when left out

point ​

ts
point?: string;

A point of the model of the entity the effect is on (ModelDef.points), in the place of the effect's own

when ​

ts
when?: (params: FxParams) => boolean;

Played only when this says so, as it starts: a part for big blasts only ((p) => p.size > 1.5)