Skip to content

CutHooks beta ​

TypeAlias of @v12-engine/client

ts
export type CutHooks = Record<string, CutHook>;

The hooks a cinematic has, by name. What happens in a cinematic, each heard by the hook of its name:

  • start, end (with its outcome), skip, pause, resume, seek (with to and from) - shot: the camera reached a key of its lane, or a move of the script's (cut.camera) ended - line: a line of dialog shown (speaker, text) - marker:<name>: the time reached a marker of a def playing - cue:<name>: a cue, from the rules (cueCinematic) or code (cut.cue) - lane:<kind>:clip, lane:<kind>:key: a clip of a lane started at its moment, a key of one reached; a lane may say more of its own - lane:<kind>:start, lane:<kind>:end, and clip:start, clip:end for every lane: a clip begun (at its moment, or part way in by a seek: into) and ended (why), with what it plays (clip, its handle: a video's element) - item:<id>:start, item:<id>:end, item:<id>:key: the same, of the item with that id - any other name: called by a clip of the hooks lane ({ at, hook: 'flare' }), or by code (cut.emit)