sm.lift.createNonPlayerLift

Creates a non-player lift. A non-player lift is a lift that doesn't belong to any player.

Kind: Function

Environments: Game

Game

sm.lift.createNonPlayerLift( world, pos, body, level, rotation )

Open the full Game reference

Availability: Server only

return Lift: The created lift.

Parameters:

Name Type Description
world World World to place the lift in.
pos Vec3 Position to place the lift at.
body (optional) Body Body to place on the lift (optional).
level (optional) integer Level to place the lift at. (Defaults to 0.)
rotation (optional) integer Rotation index to place the lift at. (Defaults to 0.)