# Interactable.getChildren

Returns a table of child [interactables](../Game-Script-Environment/Userdata/Interactable.md) that an interactable is connected to. The children listen to the interactable's output.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
interactable:getChildren( flags )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |
| `flags` | integer | Connection type flags filter. (defaults to all types except for sm.interactable.connectionType.bearing and sm.interactable.connectionType.steering (for backwards compability)) |

**Returns:**

| Type | Description |
| --- | --- |
| table | A table of the connected child [interactables](../Game-Script-Environment/Userdata/Interactable.md) \{[Interactable](../Game-Script-Environment/Userdata/Interactable.md), ..\}. |
