---
name: "BIS_fnc_VRDrawGrid"
type: function
status: ok
groups: ["VR"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_VRDrawGrid
revid: 352028
updated: 2024-02-01T23:24:26Z
---

# BIS_fnc_VRDrawGrid

*Function · VR · Arma 3 v1.00*

## Description

Visualizes surface grid (used primarily for VR missions).

> [!NOTE]
> Only one instance of grid visualisation can run at any given time. Calling this function multiple times will only move the grid center.

## Syntax

```sqf
[location, colour] call BIS_fnc_VRDrawGrid
```

**Parameters:**

- `location`: [Boolean](../topics/Boolean.md) or [Array](../topics/Array.md) format [Position](../topics/Position.md):
  - [Boolean](../topics/Boolean.md): use [false](../commands/false.md) to disable grid visualisation
  - [Position](../topics/Position.md): center position (should be multiple of 4 in both axis to correspond with the tiles on the ground, like [1000,1000] or [2400,2400])
- `colour`: [Array](../topics/Array.md) - (Optional, default [0,0,0,1]) to format [R,G,B,A]

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;
```

### Example 2

```sqf
[false] call BIS_fnc_VRDrawGrid;
```

## See also

[BIS_fnc_VRDrawBorder](../functions/BIS_fnc_VRDrawBorder.md)

<sub>Source: [BI Community Wiki — BIS fnc VRDrawGrid](https://community.bistudio.com/wiki/BIS_fnc_VRDrawGrid) (revision 352028).</sub>
