# sm.cell.getInteractablesByTags

Returns a table of [Interactables](../Game-Script-Environment/Userdata/Interactable.md) which contain all of the given tags for a cell coordinate.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.cell.getInteractablesByTags( x, y, tags )
```

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

**Availability:** Server only

~ can be used to exclude a specific tag. Example: { "FRUIT", "~BANANA" } finds interactables tagged with FRUIT but excludes interactables that are also tagged with BANANA.

> **Note:**
> Can only be used in a server_onCellLoaded callback

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `x` | integer | The X-coordinate |
| `y` | integer | The Y-coordinate |
| `tags` | table | A table \{string, ...\} of tags to match with. |

**Returns:**

| Type | Description |
| --- | --- |
| table | A table \{[Interactable](../Game-Script-Environment/Userdata/Interactable.md), ...\} of found interactables with matching tags |
