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:
| Operation | Description |
|---|---|
Lift == Lift | Checks if two instances of Lift refer to the same Lift. |
Functions
destroy
lift:destroy()
Server-Only
Destroys the lift.
Parameters:
lift(Lift): The lift.
getId
lift:getId()
Returns the lift's id.
Parameters:
lift(Lift): The lift.
Returns:
- (int): The lift's id.
getLevel
lift:getLevel()
Returns the lift's level.
Parameters:
lift(Lift): The lift.
Returns:
- (int): The lift's level.
getWorldPosition
lift:getWorldPosition()
Returns the lift's world position.
Parameters:
lift(Lift): The lift.
Returns:
- (Vec3): The lift's world position.
hasBodies
lift:hasBodies()
Returns whether there is a body on the lift.
Parameters:
lift(Lift): The lift.
Returns:
- (boolean): Whether the lift has bodies or not.