Lift

A userdata object representing a lift in the game.

Values:

Functions:

Operations:

OperationDescription
Lift == LiftChecks if two instances of Lift refer to the same Lift.

id integer

Get:

Returns the id of a lift.


level integer

Get:

Returns the level of a lift.


worldPosition Vec3

Get:

Returns the world position of a lift.


destroy(lift)

Server only

Destroys a lift.

Parameters:

TypeNameDescription
LiftliftThe lift.

getId(lift)

Returns the id of a lift.

Parameters:

TypeNameDescription
LiftliftThe lift.

Returns:

TypeDescription
integerThe lift's id.

getLevel(lift)

Returns the level of a lift.

Parameters:

TypeNameDescription
LiftliftThe lift.

Returns:

TypeDescription
integerThe lift's level.

getWorldPosition(lift)

Returns the world position of a lift.

Parameters:

TypeNameDescription
LiftliftThe lift.

Returns:

TypeDescription
Vec3The lift's world position.

hasBodies(lift)

Returns whether there's a body on the lift.

Parameters:

TypeNameDescription
LiftliftThe lift.

Returns:

TypeDescription
booleanReturns true if the lift has a body.