ClipOptions beta
Interface of @v12-engine/client
export interface ClipOptionsHow a clip is played on demand (playClip)
Members
from
from?: number;Seconds into the clip it starts from: a cinematic seeked into the middle of it
loop
loop?: boolean;Over and over, until another clip is played or it is stopped (stopClip, release): for a cutscene, a cheer, a pose held
marks
marks?: {
at: number;
run: () => void;
}[];Moments of the clip, as a part of its length (0.4: two fifths in), and what happens at each: the hit of a swing
mask
mask?: ClipMask | null;The part of the body it plays on (ClipMask: 'upper', 'lower', bones by name), layered over what the unit keeps doing on the rest (a wave while it walks); the clip's own (ClipDef.mask) when left out, null for the whole body
onEnd
onEnd?: (how: ClipStop) => void;Once it is over, told once with why (ClipStop): played to its end, stopped, or cut off by something else. A loop is told when it is stopped or cut off
seconds
seconds?: number;Seconds it takes. Its own speed when left out
unlessBusy
unlessBusy?: boolean;Only where it does nothing else now: a swing, a cast, a death or a clip of the game's are not cut for it, and it is not played (a flinch as it is struck, HitLook.clip)