PartTiming beta
Interface of @v12-engine/client
export interface PartTimingWhen a part of an effect starts, how long it lasts, and where it is, besides what the part is
Members
at
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
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
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
offset?: Param<readonly [number, number, number]>;How far from where the effect is, in world units: up is y
orbit
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
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
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
when?: (params: FxParams) => boolean;Played only when this says so, as it starts: a part for big blasts only ((p) => p.size > 1.5)