# sm.areaTrigger.filter

Filters are used to specify what object types an area trigger is able to detect. If an area trigger is created with a filter, it will <strong>only</strong> react to objects of that type. Filters can be combined by adding them.

**Kind:** Constant

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.areaTrigger.md#filter)

The filters are:

- <strong>dynamicBody</strong> &ndash; Detects [bodies](../Game-Script-Environment/Userdata/Body.md) that are free to move around in the world.
- <strong>staticBody</strong> &ndash; Detects [bodies](../Game-Script-Environment/Userdata/Body.md) that are built on the ground or on the lift.
- <strong>character</strong> &ndash; Detects [characters](../Game-Script-Environment/Userdata/Character.md) such as players.
- <strong>areatrigger</strong> &ndash; Detects [areatriggers](../Game-Script-Environment/Userdata/AreaTrigger.md) such as water areas.
- <strong>harvestable</strong> &ndash; Detects [harvestables](../Game-Script-Environment/Userdata/Harvestable.md) such as planted objects.
- <strong>lift</strong> &ndash; Detects [lifts](../Game-Script-Environment/Userdata/Lift.md).
- <strong>voxelTerrain</strong> &ndash; Detects destructible terrain.
- <strong>all</strong> &ndash; Detects all of the object types above. (Default)

| Value | Description |
| --- | --- |
| dynamicBody | 1 |
| staticBody | 2 |
| character | 4 |
| areatrigger | 8 |
| harvestable | 512 |
| lift | 1024 |
| voxelTerrain | 32768 |
| all | 34319 |

**Returns:**

| Type | Description |
| --- | --- |
| table | The filter type list. |
