# sm.cell.getNodesByTag

Returns a table of nodes which contains the given tag for a cell coordinate.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.cell.getNodesByTag( x, y, tag, world? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `x` | integer | X-coordinate. |
| `y` | integer | Y-coordinate. |
| `tag` | string | Tag to match with. |
| `world` *(optional)* | world | The world we are searching in. (Optional, defaults to current world) |

**Returns:**

| Type | Description |
| --- | --- |
| table | Table containing \{ position = [Vec3](../Game-Script-Environment/Userdata/Vec3.md), rotation = [Quat](../Game-Script-Environment/Userdata/Quat.md), scale = [Vec3](../Game-Script-Environment/Userdata/Vec3.md), tags = \{string, ...\}, params = table \} for each node. |
