sm.lift
Associated object type: Lift
Functions:
sm.lift.createNonPlayerLift(world, pos, body?, level?, rotation?)
Server only
Creates a non-player lift. A non-player lift is a lift that doesn't belong to any player.
return Lift: The created lift.
Parameters:
| Type | Name | Description |
|---|---|---|
| World | world | World to place the lift in. |
| Vec3 | pos | Position to place the lift at. |
| Body | body? | Body to place on the lift (optional). |
| integer | level? | Level to place the lift at. (Defaults to 0.) |
| integer | rotation? | Rotation index to place the lift at. (Defaults to 0.) |
sm.lift.createVirtualLift(world, body)
Server only
Creates a virtual lift. A virtual lift is a lift that doesn't exist in the game world. But allows for a static body to be placed on it.
return Lift: The created lift.
Parameters:
| Type | Name | Description |
|---|---|---|
| World | world | World to place the lift in. |
| Body | body | Body to place on the lift. |