BIS fnc VRDrawGrid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)<nowiki>\[<\/nowiki>\[\[([a-zA-Z0-9_]+)\]\](.*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 9: | Line 9: | ||
{{Feature|Informative|Only one instance of grid visualisation can run at any given time. Calling this function multiple times will only move the grid center.}} | {{Feature|Informative|Only one instance of grid visualisation can run at any given time. Calling this function multiple times will only move the grid center.}} | ||
|s1= [location | |s1= [location, colour] call [[BIS_fnc_VRDrawGrid]] | ||
|p1= location: [[Position]] | |p1= location: [[Boolean]] or [[Array]] format [[Position]]: | ||
* [[Boolean]]: use [[false]] to disable grid visualisation | |||
* [[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]) | * [[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]) | ||
|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>] | |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>] | ||
Line 19: | Line 19: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[getPosATL player, [0.078, 0.3647, 0.0]] call BIS_fnc_VRDrawGrid;</sqf> | ||
|x2= < | |x2= <sqf>[false] call BIS_fnc_VRDrawGrid;</sqf> | ||
|seealso= [[BIS_fnc_VRDrawBorder]] | |seealso= [[BIS_fnc_VRDrawBorder]] | ||
}} | }} |
Revision as of 13:43, 13 July 2022
Description
Syntax
- Syntax:
- [location, colour] call BIS_fnc_VRDrawGrid
- Parameters:
- location: Boolean or Array format Position:
- colour: Array - (Optional, default [0,0,0,1]) to format [R,G,B,A]
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
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