Lift
A userdata object representing a lift in the game.
Values:
Functions:
Operations:
Operation | Description |
---|---|
Lift == Lift | Checks 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:
Type | Name | Description |
---|---|---|
Lift | lift | The lift. |
getId(lift)
Returns the id of a lift.
Parameters:
Type | Name | Description |
---|---|---|
Lift | lift | The lift. |
Returns:
Type | Description |
---|---|
integer | The lift's id. |
getLevel(lift)
Returns the level of a lift.
Parameters:
Type | Name | Description |
---|---|---|
Lift | lift | The lift. |
Returns:
Type | Description |
---|---|
integer | The lift's level. |
getWorldPosition(lift)
Returns the world position of a lift.
Parameters:
Type | Name | Description |
---|---|---|
Lift | lift | The lift. |
Returns:
Type | Description |
---|---|
Vec3 | The lift's world position. |
hasBodies(lift)
Returns whether there's a body on the lift.
Parameters:
Type | Name | Description |
---|---|---|
Lift | lift | The lift. |
Returns:
Type | Description |
---|---|
boolean | Returns true if the lift has a body. |