Skip to main content

sm.harvestable

Associated object type: Harvestable

Functions

create

sm.harvestable.create( uuid, position, rotation, slopeNormal )
Server-Only

Creates a new harvestable.

Arguments:
  • uuid [ Uuid ]: The uuid of the harvestable.
  • position [ Vec3 ]: The harvestable's world position.
  • rotation [ Quat ]: The harvestable's world rotation. Defaults to sm.quat.identity().
  • slopeNormal [ Vec3 ]: The harvestable's slope normal, for "skew" and "rotate" slope settings. Defaults to Z axis.

createHarvestable

sm.harvestable.createHarvestable( uuid, position, rotation, slopeNormal )
Server-Only

Creates a new harvestable.

Arguments:
  • uuid [ Uuid ]: The uuid of the harvestable.
  • position [ Vec3 ]: The harvestable's world position.
  • rotation [ Quat ]: The harvestable's world rotation. Defaults to sm.quat.identity().
  • slopeNormal [ Vec3 ]: The harvestable's slope normal, for "skew" and "rotate" slope settings. Defaults to Z axis.