BIS fnc mapGridSize: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.92 | |1.92 | ||
|gr1 = Map and Markers | |gr1 = Map and Markers | ||
| Returns the size of map grid square at current zoom level.<br><br> | | Returns the size of map grid square at current zoom level.<br><br> | ||
{{Informative | This function caches config lookup result on the first use and for the duration of the mission, making subsequent access 2-3 times faster.}} | {{Informative | This function caches config lookup result on the first use and for the duration of the mission, making subsequent access 2-3 times faster.}} | ||
| [map] call [[BIS_fnc_mapGridSize]] | | [map] call [[BIS_fnc_mapGridSize]] | ||
| p1= [map]: [[Array]] | | p1= [map]: [[Array]] | ||
| p2= map (Optional): [[Control]] - map control. Default: main mission map ([[findDisplay]] 12 [[displayCtrl]] 51) | | p2= map (Optional): [[Control]] - map control. Default: main mission map ([[findDisplay]] 12 [[displayCtrl]] 51) | ||
| [[Number]] - map grid size | | [[Number]] - map grid size | ||
|x1= <code>_gridSize = [] [[call]] [[BIS_fnc_mapGridSize]];</code> | |x1= <code>_gridSize = [] [[call]] [[BIS_fnc_mapGridSize]];</code> | ||
| [[BIS_fnc_mapSize]] | | [[BIS_fnc_mapSize]] | ||
}} | }} | ||
Revision as of 23:11, 17 January 2021
Description
- Description:
- Returns the size of map grid square at current zoom level.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [map] call BIS_fnc_mapGridSize
- Parameters:
- [map]: Array
- map (Optional): Control - map control. Default: main mission map (findDisplay 12 displayCtrl 51)
- Return Value:
- Number - map grid size
Examples
- Example 1:
_gridSize = [] call BIS_fnc_mapGridSize;
Additional Information
- See also:
- BIS_fnc_mapSize
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