sm.cell.getHarvestablesByUuid

Returns a table of Harvestables of a given size for a cell coordinate and Uuid.

Kind: Function

Environments: Game

Game

sm.cell.getHarvestablesByUuid( x, y, uuid, size )

Open the full Game reference

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.
uuid Uuid The uuid of the harvestable(s)
size integer Size of harvestable (defaults to any size).

Returns:

Type Description
table A table {Harvestable, ...} of harvestables.