sm.lift

Associated object type: Lift

Functions:

  • createNonPlayerLift
  • createVirtualLift

  • 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:

    TypeNameDescription
    WorldworldWorld to place the lift in.
    Vec3posPosition to place the lift at.
    Bodybody?Body to place on the lift (optional).
    integerlevel?Level to place the lift at. (Defaults to 0.)
    integerrotation?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:

    TypeNameDescription
    WorldworldWorld to place the lift in.
    BodybodyBody to place on the lift.