BIS fnc isInZoom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.00


|1.00
|gr1= Map and Markers


|gr1 = Map and Markers
|descr= Checks if map zoom level is in between given interval.


| Checks if map zoom level is in between given interval (min,max)
|s1= [<nowiki/>[min, max]] call [[BIS_fnc_isInZoom]]


|[_min,_max] call [[BIS_fnc_isInZoom]];
|p1= min: [[Number]] - start of interval


|p1= [[Number]] - start of interval
|p2= max: [[Number]] - end of interval
|p2= [[Number]] - end of interval
|[[boolean]]


|x1= <code>[[if]] ([0.001,0.02] [[call]] [[BIS_fnc_isInZoom]]) [[then]]
|r1= [[Boolean]]
 
|x1= <sqf>
if ([[0.001, 0.02]] call BIS_fnc_isInZoom) then  
{
{
   [[hint]] "Zoom level is in between 0.001 and 0.02";
   hint "Zoom level is in between 0.001 and 0.02";
};</code>
};
</sqf>
 
|seealso= [[ctrlMapScale]]
}}
}}
[[Category:Functions|{{uc:isInZoom}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isInZoom}}]]

Latest revision as of 15:49, 8 November 2023

Hover & click on the images for description

Description

Description:
Checks if map zoom level is in between given interval.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[[min, max]] call BIS_fnc_isInZoom
Parameters:
min: Number - start of interval
max: Number - end of interval
Return Value:
Boolean

Examples

Example 1:
if ([[0.001, 0.02]] call BIS_fnc_isInZoom) then { hint "Zoom level is in between 0.001 and 0.02"; };

Additional Information

See also:
ctrlMapScale

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