Skip to content

CutUnits beta ​

Class of @v12-engine/client

ts
export declare class CutUnits

What the cinematic does to units on the screen (cut.units): hidden, shown, tinted, inked, flashed, pinged on the minimap; by a name, a ref or an id; put back when it is over

Members ​

constructor ​

ts
constructor(cut: Cut);

Constructs a new instance of the CutUnits class

clear ​

ts
clear(): void;

Everything it did to units undone

flash ​

ts
flash(unit: string | number, color: Rgb, seconds?: number): void;

A flash of a colour, for seconds

hide ​

ts
hide(unit: string | number): void;

Hides a unit's model, by name or entity id, and remembers it to show again when the cut ends

ink ​

ts
ink(unit: string | number, look: InkLook | null): void;

An outline or a cartoon's look (InkLook), or none (null)

ping ​

ts
ping(at: string | number | Vec2, color?: string): void;

A ping on the minimap at a spot or a unit, in a colour

show ​

ts
show(unit: string | number): void;

Shows a unit's model again, by name or entity id

tint ​

ts
tint(unit: string | number, color: Rgb | null): void;

Coloured, or as it is again (null)