sm.cell.getHarvestables
Returns a table of Harvestables of a given size for a cell coordinate.
Kind: Function
Environments: Game
Game
sm.cell.getHarvestables( x, y, size )
Availability: Server only
Sizes are:
0: Tiny - plants and crops.
1: Small - small trees and rocks.
2: Medium - medium trees, visible at a long distance.
3: Large - large trees, visible at a very long distance.
Parameters:
| Name | Type | Description |
|---|---|---|
x |
integer | The X-coordinate. |
y |
integer | The Y-coordinate. |
size |
integer | Size of harvestable (defaults to any size). |
Returns:
| Type | Description |
|---|---|
| table | A table {Harvestable, ...} of harvestables. |