BIS fnc isInZoom: Difference between revisions

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


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Map and Markers


|1.00|= Game version
|descr= Checks if map zoom level is in between given interval.
____________________________________________________________________________________________


| ''N/A'' |= Description
|s1= [<nowiki/>[min, max]] call [[BIS_fnc_isInZoom]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_isInZoom]]; --> |= Syntax
|p1= min: [[Number]] - start of interval


|p1= |= Parameter 1
|p2= max: [[Number]] - end of interval


| |= Return value
|r1= [[Boolean]]
____________________________________________________________________________________________


|x1= <code></code> |=
|x1= <sqf>
____________________________________________________________________________________________
if ([[0.001, 0.02]] call BIS_fnc_isInZoom) then
 
{
| |= See also
  hint "Zoom level is in between 0.001 and 0.02";
};
</sqf>


|seealso= [[ctrlMapScale]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:isInZoom}}]]
[[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