{"name":"BIS_fnc_VRDrawGrid","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"location","type":"Boolean or Array format Position:","optional":false,"default":null,"description":"Boolean or Array format Position:\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])","types":["Boolean","Array","Position"],"since":null,"text":"location: Boolean or Array format Position:\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]","types":["Array"],"since":null,"text":"colour: Array - (Optional, default [0,0,0,1]) to format [R,G,B,A]"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;\n```","code":["[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;"]},{"text":"```sqf\n[false] call BIS_fnc_VRDrawGrid;\n```","code":["[false] call BIS_fnc_VRDrawGrid;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_VRDrawBorder"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: VR","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}