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 tosm.quat.identity()
.slopeNormal
[ Vec3 ]: The harvestable's slope normal, for "skew" and "rotate" slope settings. Defaults to Z axis.
harvestable
[ Harvestable ]: The created harvestable.
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 tosm.quat.identity()
.slopeNormal
[ Vec3 ]: The harvestable's slope normal, for "skew" and "rotate" slope settings. Defaults to Z axis.
harvestable
[ Harvestable ]: The created harvestable.