sm.ai.getClosestVisibleCrop
Returns the farming harvestable that is closest to the unit.
Kind: Function
Environments: Game
Game
sm.ai.getClosestVisibleCrop( unit )
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |
Returns:
| Type | Description |
|---|---|
| Harvestable | The harvestable. |