# sm.terrainTile.getHeightAt

Returns the terrain height at position (x,y) in a tile cell.

**Kind:** Function

**Environments:** Terrain

## Terrain

``` { .lua .api-signature }
sm.terrainTile.getHeightAt( tileUid, cellOffsetX, cellOffsetY, lod, x, y )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.terrainTile.md#getheightat)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tileUid` | [Uuid](../Terrain-Script-Environment/Userdata/Uuid.md) | The tile uuid. |
| `cellOffsetX` | integer | The cell X offset. |
| `cellOffsetY` | integer | The cell Y offset. |
| `lod` | integer | The level of detail. [0-5] |
| `x` | integer | The local X value. |
| `y` | integer | The local Y value. |

**Returns:**

| Type | Description |
| --- | --- |
| number | The height. |
