UnitDoing beta
Interface of @v12-engine/client
export interface UnitDoingWhat a unit does: what an item of the lane and a step of a sequence have alike
Members
clip
clip?: string;A clip of the unit's model by its name, or a kind of animation (attack, cast, death...: what the model's animations maps it to)
facing
facing?: number;The way the unit is turned, in radians
fight
fight?: UnitFight;A fight with a fixed outcome: this unit attacks another (CN4, see UnitFight)
flash
flash?: Rgb;A colour the model flashes in
fx
fx?: string;The name of an effect played on the unit
hidden
hidden?: boolean;Whether the unit's model is hidden
ink
ink?: InkLook | null;An ink look (outline or flat colour) the model is drawn with, or null to take it off
invulnerable
invulnerable?: boolean;Whether the unit takes no damage while the cinematic lasts
kill
kill?: boolean;Whether the unit is killed, with its death played
loop
loop?: boolean;A clip played over and over until the item ends (for), or a cheer once
order
order?: string;The order the unit is given, such as move or attack, going to to or along path
owner
owner?: number;The player the spawned unit belongs to
path
path?: string;A path of the map by its name (MapPath): the order (a move where it names none) to each of its points in turn
place
place?: Vec2;Where it is put down, or put (teleport)
remove
remove?: boolean;Taken away, with no death
scale
scale?: number;How big the unit is drawn, times its model's size
spawn
spawn?: string;The director's (CI1): unit put down, a new one of this type, for owner at place
steps
steps?: UnitStep[];A sequence: what it does, a step after another, in the place of what the item itself does. See the top of this file
teleport
teleport?: boolean;Put at at at once
tint
tint?: Rgb | null;A colour the unit's model is tinted with, or null to take the tint off
to
to?: Vec2 | string;Where the order goes: a point, or a unit by name (its target)