ctrlMapScale
- Arma 3 v0.50
- First in Armed Assault v1.00
Command · Markdown · JSON · original wiki page
Description
Returns the current scale of given map control.
Syntax
ctrlMapScale ctrl
Parameters:
Returns: Number
Examples
Example 1
_control = (findDisplay 12) displayCtrl 51;
_scale = ctrlMapScale _control;
See also
ctrlScale · ctrlSetScale · ctrlMapDir
Following formula can be used to calculate current "zoom points", these can be used to hide/show icons at the same thresholds as the native map icons:
800 * (1 / ctrlMapScale _ctrlMap) * (1 / getTerrainInfo#1)
The thresholds are defined in
ptsPerSquare* ctrl map properties, e.g:
getNumber (configFile >> "ctrlMap" >> "ptsPerSquareObj")