Skip to content
M2O Scripting APIScripting reference
Data shapeServer APIGenerated

LiftInfo

Defined in: server/api.d.ts:2021

A base-game lift, as placed in the game’s archives.

archives: string[]

Defined in: server/api.d.ts:2040

Game archives the lift needs streamed in, such as “city/distillery”: the one holding it and, for a lift inside an interior, the city parts of the building around it.


floorCount: number

Defined in: server/api.d.ts:2050

Number of floors.


floorHeights: number[]

Defined in: server/api.d.ts:2055

World height of the cab floor at each floor, lowest first.


frame: string

Defined in: server/api.d.ts:2035

Frame name; the id is its hash.


id: string

Defined in: server/api.d.ts:2025

Lift id, as the other Lift functions take it.


initialFloor: number

Defined in: server/api.d.ts:2060

Floor the game puts the lift at until the server moves it.


name: string

Defined in: server/api.d.ts:2030

Entity name the game gives the lift.


position: Vector3

Defined in: server/api.d.ts:2045

Where the lift is placed: its shaft, at the lowest floor.


speed: number

Defined in: server/api.d.ts:2065

Cruising speed, metres per second.