Skip to main content

Lift

A userdata object representing a lift in the game.

Values:
  • id [ int ]

    • Get: The lift's id.
  • level [ int ]

    • Get: The lift's level.
  • worldPosition [ Vec3 ]

    • Get: The lift's world position.
Operations:
OperationDescription
Lift == LiftChecks if two instances of Lift refer to the same Lift.

Functions

destroy

lift:destroy()
Server-Only

Destroys the lift.

Arguments:

getId

lift:getId()

Returns the lift's id.

Arguments:
Returns:
  • [ int ]: The lift's id.

getLevel

lift:getLevel()

Returns the lift's level.

Arguments:
Returns:
  • [ int ]: The lift's level.

getWorldPosition

lift:getWorldPosition()

Returns the lift's world position.

Arguments:
Returns:
  • [ Vec3 ]: The lift's world position.

hasBodies

lift:hasBodies()

Returns whether there is a body on the lift.

Arguments:
Returns:
  • [ bool ]: Whether the lift has bodies or not.