{"name":"BIS_fnc_VRDrawGrid","title":"BIS fnc VRDrawGrid","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_VRDrawGrid","revid":352028,"updated":"2024-02-01T23:24:26Z","groups":["VR"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Visualizes surface grid (used primarily for VR missions).\n\n> [!NOTE]\n> Only one instance of grid visualisation can run at any given time. Calling this function multiple times will only move the grid center.","syntaxes":[{"syntax":"[location, colour] call BIS_fnc_VRDrawGrid","params":[{"name":"location","type":"Boolean or Array format Position:","description":"Boolean or Array format Position:\n\n- Boolean: use false to disable grid visualisation\n- Position: center position (should be multiple of 4 in both axis to correspond with the tiles on the ground, like [1000,1000] or [2400,2400])","type_expr":"Boolean | Position","types":["Boolean","Array","Position"],"text":"location: Boolean or Array format Position:\n\n- Boolean: use false to disable grid visualisation\n- Position: center position (should be multiple of 4 in both axis to correspond with the tiles on the ground, like [1000,1000] or [2400,2400])"},{"name":"colour","type":"Array","optional":true,"default":"[0,0,0,1]","description":"to format [R,G,B,A]","type_expr":"Array","text":"colour: Array - (Optional, default [0,0,0,1]) to format [R,G,B,A]"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;"]},{"code":["[false] call BIS_fnc_VRDrawGrid;"]}],"see_also":["BIS_fnc_VRDrawBorder"]}