Skip to content

CutTime beta ​

Class of @v12-engine/client

ts
export declare class CutTime

Slow motion and freezes (cut.speed): see the top of this file. A rate holds until another, reset, or the cinematic is over; with seconds, it is put back after them (of the screen's: slowing the game does not slow the cinematic)

Members ​

constructor ​

ts
constructor(cut: Cut);

Constructs a new instance of the CutTime class

freeze ​

ts
freeze(seconds?: number): Promise<void>;

The game stands still on the screen, for seconds when given

local ​

ts
get local(): boolean;

Whether the game's own speed is slowed (it runs in this page), not only its animations

rate ​

ts
rate(rate: number, seconds?: number): Promise<void>;

The game at rate of its speed, for seconds when given (then as it was)

reset ​

ts
reset(): void;

The game's speed as it was

run ​

ts
run(rate?: number, seconds?: number): Promise<void>;

The world goes on at rate (1 its speed) though the cinematic holds it (PlayOptions.hold), for seconds when given: the units it ordered march, a fight plays out. It stands still again after, while the cinematic holds it

slow ​

ts
slow(rate: number, seconds?: number): Promise<void>;

Slow motion: the game at rate of its speed (0.25 a quarter), for seconds when given