sm.harvestable.create
Create a new harvestable
Kind: Function
Environments: Game
Game
sm.harvestable.create( uuid, position, rotation, slopeNormal )
Deprecated: Use createHarvestable instead
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | The uuid of the harvestable. |
position |
Vec3 | The harvestable's world position. |
rotation (optional) |
Quat | The harvestable's world rotation, optional uses identity rotation if nil. |
slopeNormal (optional) |
Vec3 | The harvestable's slope normal. For "skew" and "rotate" slope settings, optional uses z axis if nil. |
Returns:
| Type | Description |
|---|---|
| Harvestable | The created harvestable. |