Appearance
spool / Cutscene
Class: Cutscene
Defined in: plugins/clip/cutscene.ts:22
Constructors
Constructor
new Cutscene(
dp,name):Cutscene
Defined in: plugins/clip/cutscene.ts:30
Parameters
dp
Datapack
name
string
Returns
Cutscene
Methods
add()
add(
clip,opts?):this
Defined in: plugins/clip/cutscene.ts:38
Place clip on the master timeline starting at tick at (default 0).
Parameters
clip
opts?
at?
number
Returns
this
at()
at(
tick,cb):this
Defined in: plugins/clip/cutscene.ts:45
Run cb's commands at master tick tick (sound, title, anything).
Parameters
tick
number
cb
Emit
Returns
this
camera()
camera(
viewer,keys,opts?):this
Defined in: plugins/clip/cutscene.ts:56
Dolly viewer (usually the spectating player) along a positional path, starting at tick at. Sugar for a tp clip added to the timeline. Assumes a spectator-style camera for the target version.
Parameters
viewer
Selector
keys
readonly Keyframe<Vec3>[]
opts?
at?
number
Returns
this
play()
play(
ctx):void
Defined in: plugins/clip/cutscene.ts:62
Emit the master schedule that drives the whole sequence.
Parameters
ctx
FunctionContext
Returns
void