FxModelCopy beta
Interface of @v12-engine/client
ts
export interface FxModelCopyA copy of a model an effect's model part shows (FxViewHost.model: the units' view's LiteProp): where it stands and which way it faces, how high over the ground, how big, how much of it is there, whether it is drawn, how tall it stands, a clip of it played
Members
alpha
ts
alpha: number;How much of it shows, from 0 to 1 (dithered)
place
ts
place(at: {
x: number;
z: number;
}, facing?: number): void;Puts it at a place of the map, facing a way (radians)
play
ts
play(clip: string, loop?: boolean): boolean;Plays a clip of its model by name, looped or once: whether it has it
remove
ts
remove(): void;Takes it away, put back for the next
root
ts
readonly root: {
position: {
y: number;
};
};Its root: how high it stands over the ground
scale
ts
scale: number;How big it is, its model's size times this
tall
ts
readonly tall: number;How tall its model stands, in cells
under
ts
under: number;How far it is sunk under where it stands, in cells
visible
ts
visible: boolean;Whether it is drawn