# AreaTrigger.setHarvestableDetection

When set to true the area trigger can calculate which harvestables are inside of the trigger and get the collision information.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
areaTrigger:setHarvestableDetection( detectHarvestables )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/AreaTrigger.md#setharvestabledetection)

with a call to [AreaTrigger](../Game-Script-Environment/Userdata/AreaTrigger.md): getHarvestables

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `areaTrigger` | [AreaTrigger](../Game-Script-Environment/Userdata/AreaTrigger.md) | The area trigger instance. |
| `detectHarvestables` | boolean | Harvestable detection on or off. |
