sm.ai.getClosestVisibleCrop

Returns the farming harvestable that is closest to the unit.

Kind: Function

Environments: Game

Game

sm.ai.getClosestVisibleCrop( unit )

Open the full Game reference

Parameters:

Name Type Description
unit Unit The unit.

Returns:

Type Description
Harvestable The harvestable.