# sm.pipeGraph.getContainerShapeToCollectTo

Returns a chest which allows for collection of specified items of the specified quantities.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pipeGraph.getContainerShapeToCollectTo( requester, items, quantities )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `requester` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape connected to the pipe graph who requests the information. |
| `items` | table | The uuids of items to check. |
| `quantities` | table | The number of items of each uuid. Needs to match the number of uuids. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape of the container which was the first one that allows the collection. |
