Skip to content
M2O Scripting APIScripting reference
Data shapeServer APIGenerated

LiftState

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

Synchronized state of a lift.

floor: number

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

Floor the lift is at, or the floor it left while it is moving. Floor 0 is the lowest.


interactionEnabled: boolean | null

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

The lift’s button override, or null when the buttons are left as the game sets them up.


moving: boolean

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

Whether the lift is between floors, doors closing included.


remainingMs: number

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

Milliseconds until the current move ends; 0 when the lift is not moving.


targetFloor: number

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

Floor the lift is going to; equal to floor when it is not moving.