CutHook beta
TypeAlias of @v12-engine/client
ts
export type CutHook = (cut: Cut, event: CutEvent) => void | Promise<void>;A hook of a cinematic: code run at a moment of it (see Cut.on). What it returns, if a promise, is waited for before the cinematic is over; the clock does not wait for it (a hook that wants time on screen uses the cut: await cut.wait(1))