---
name: "diag_getTerrainGrid"
type: command
status: deprecated
replaced_by: ["getTerrainInfo"]
groups: ["Diagnostic"]
arma3_since: "2.04"
branch: "diag"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_getTerrainGrid
revid: 322636
updated: 2022-06-20T11:53:38Z
---

# diag_getTerrainGrid

*Command · Diagnostic · Arma 3 v2.04 · branch: diag*

> [!WARNING]
> This command is deprecated. Use [getTerrainInfo](../commands/getTerrainInfo.md) instead.

## Description

Returns terrain cell size (size of each grid cell in the Heightmap).

> [!CAUTION]
> This information is **obsolete**. This command is subject to be removed and replaced with: [getTerrainInfo](../commands/getTerrainInfo.md)

## Syntax

```sqf
diag_getTerrainGrid
```

**Returns:** [Number](../topics/Number.md) - terrain grid

## Examples

### Example 1

```sqf
private _terrainGrid = diag_getTerrainGrid;
```

## See also

[diag_getTerrainSegmentOffset](../commands/diag_getTerrainSegmentOffset.md) · [getTerrainGrid](../commands/getTerrainGrid.md)

<sub>Source: [BI Community Wiki — diag getTerrainGrid](https://community.bistudio.com/wiki/diag_getTerrainGrid) (revision 322636).</sub>
