sm.harvestable
Associated object type: Harvestable
Functions:
sm.harvestable.create(uuid, position, rotation=nil, slopeNormal=nil)
Server only
Create a new harvestable
Parameters:
Type | Name | Description |
---|---|---|
Uuid | uuid | The uuid of the harvestable. |
Vec3 | position | The harvestable's world position. |
Quat | rotation=nil | The harvestable's world rotation, optional uses identity rotation if nil. |
Vec3 | slopeNormal=nil | The 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:
Type | Name | Description |
---|---|---|
Uuid | uuid | The uuid of the harvestable. |
Vec3 | position | The harvestable's world position. |
Quat | rotation=nil | The harvestable's world rotation, optional uses identity rotation if nil. |
Vec3 | slopeNormal=nil | The harvestable's slope normal. For "skew" and "rotate" slope settings, optional uses z axis if nil. |