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