sm.harvestable

Associated object type: Harvestable

Functions:

  • create
  • createHarvestable

  • sm.harvestable.create(uuid, position, rotation=nil, slopeNormal=nil)

    Server only

    Create a new harvestable

    Parameters:

    TypeNameDescription
    UuiduuidThe uuid of the harvestable.
    Vec3positionThe harvestable's world position.
    Quatrotation=nilThe harvestable's world rotation, optional uses identity rotation if nil.
    Vec3slopeNormal=nilThe harvestable's slope normal. For "skew" and "rotate" slope settings, optional uses z axis if nil.

    sm.harvestable.createHarvestable(uuid, position, rotation=nil, slopeNormal=nil)

    Server only

    Create a new harvestable

    Parameters:

    TypeNameDescription
    UuiduuidThe uuid of the harvestable.
    Vec3positionThe harvestable's world position.
    Quatrotation=nilThe harvestable's world rotation, optional uses identity rotation if nil.
    Vec3slopeNormal=nilThe harvestable's slope normal. For "skew" and "rotate" slope settings, optional uses z axis if nil.