BIS fnc isInZoom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
Line 16: Line 16:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>if ([0.001, 0.02] call [[BIS_fnc_isInZoom]]) [[then]]  
|x1= <code>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";

Revision as of 22:37, 12 July 2022

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:
-

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