Difference between revisions of "BIS fnc VRDrawGrid"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
  
{{Function|= Comments
+
{{Function|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3 |= Game name
+
| arma3 |Game name=
  
|1.00|= Game version
+
|1.00|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <pre>/*
+
| Visualizes surface grid (used primarily for VR missions).<br />
 +
{{Informative|Only one instance of grid visualisation can run at any given time. Calling this function multiple times will only move the grid center.}} |Description=
 +
____________________________________________________________________________________________
  
Description:
+
| [location'', colour''] call [[BIS_fnc_VRDrawGrid]] |Syntax=
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
 
  
Parameter(s):
+
|p1= location: [[Position]] or [[Boolean]]:
0: ARRAY - center position (should be multiple of 4 in both axis to correspond with the tiles on the ground, like [1000,1000] or [2400,2400])
+
* [[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])
or
+
* [[Boolean]]: use [[false]] to disable grid visualisation |Parameter 1=
BOOL - use FALSE to disable grid visualisation
 
1: (Optional) ARRAY - grid color [R,G,B,A], default black [0,0,0,1];
 
  
 +
|p2= colour: [[Array]] - (Optional, default [0,0,0,1]) to format [<span style="color: red">R</span>,<span style="color: green">G</span>,<span style="color: blue">B</span>,<span style="color: grey">A</span>] |Parameter 2=
  
Returns:
+
| [[Nothing]] |Return value=
Nothing
 
*/
 
 
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIS_fnc_VRDrawGrid]]; --> |= Syntax
+
|x1= <code><nowiki>[</nowiki>[[getPosATL]] [[player]], [0.078, 0.3647, 0.0]] [[call]] [[BIS_fnc_VRDrawGrid]];</code> |Example 1=
 
 
|p1= |= Parameter 1
 
 
 
| |= Return value
 
____________________________________________________________________________________________
 
  
|x1= <code></code> |=  
+
|x2= <code><nowiki>[</nowiki>[[false]]] [[call]] [[BIS_fnc_VRDrawGrid]];</code> |Example 2=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| [[BIS_fnc_VRDrawBorder]] |See also=
 
 
 
}}
 
}}
  

Revision as of 00:57, 4 June 2018


Hover & click on the images for description

Description

Description:
Visualizes surface grid (used primarily for VR missions).
Informative
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[location, colour] call BIS_fnc_VRDrawGrid
Parameters:
location: Position or Boolean:
  • 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])
  • Boolean: use false to disable grid visualisation
colour: Array - (Optional, default [0,0,0,1]) to format [R,G,B,A]
Return Value:
Nothing

Examples

Example 1:
[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;
Example 2:
[false] call BIS_fnc_VRDrawGrid;

Additional Information

See also:
BIS_fnc_VRDrawBorder

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section