Skip to content

PlayOptions beta ​

Interface of @v12-engine/client

ts
export interface PlayOptions

How a cinematic is played

Members ​

back ​

ts
back?: boolean;

The camera goes back to where it was before, once it ends or is skipped: an intro. Otherwise it stays on what the cinematic looked at last, and eases back to how far and how steeply the player looks

hold ​

ts
hold?: boolean;

The game waits while it plays, where the simulation runs in the page (single player). It goes on otherwise

holdInput ​

ts
holdInput?: boolean;

The player's hands are off, but the HUD stays as it is: a tutorial pointing at something, a short move of the camera. Without it, and without hud, the HUD makes way as a whole

hud ​

ts
hud?: readonly HudWidget[];

The parts of the HUD that stay while it plays (HudWidget: minimap, objectives...); the rest make way

letterbox ​

ts
letterbox?: boolean | number;

Black bars above and below: as they are (true, when left out), none (false), or the ratio of the picture they leave between them (2.39: the widest of films; 1.85)

manual ​

ts
manual?: boolean;

For one of the view's that is both data and a script (CinematicEntry): the script plays the data itself, when it likes (cut.play(id)), rather than the data playing as the script starts

params ​

ts
params?: Record<string, unknown>;

What the cinematic is handed (see Cinematic)

rate ​

ts
rate?: number;

How fast the cinematic's clock goes against the screen's: 1 when left out, 0.5 is slow motion (CutClock.rate)

seed ​

ts
seed?: number;

The seed of what is random to look at in it (a handheld camera): the same seed, the same picture, on every screen. A number made of its id when left out

skippable ​

ts
skippable?: boolean;

The player can skip it with Esc. True when left out

startAt ​

ts
startAt?: number;

Seconds into the cinematic it begins at: the editor playing from where the playhead is