BIS fnc isInZoom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1 = Map and Markers |GROUP1=
|gr1 = Map and Markers |GROUP1=
____________________________________________________________________________________________


| Checks if map zoom level is in between given interval (min,max)|DESCRIPTION=
| Checks if map zoom level is in between given interval (min,max)|DESCRIPTION=
____________________________________________________________________________________________


|[_min,_max] call [[BIS_fnc_isInZoom]]; |SYNTAX=
|[_min,_max] call [[BIS_fnc_isInZoom]]; |SYNTAX=
Line 17: Line 14:
|p2= [[Number]] - end of interval |PARAMETER2=
|p2= [[Number]] - end of interval |PARAMETER2=
|[[boolean]]|RETURNVALUE=
|[[boolean]]|RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>[[if]] ([0.001,0.02] [[call]] [[BIS_fnc_isInZoom]]) [[then]]  
|x1= <code>[[if]] ([0.001,0.02] [[call]] [[BIS_fnc_isInZoom]]) [[then]]  
Line 23: Line 19:
   [[hint]] "Zoom level is in between 0.001 and 0.02";
   [[hint]] "Zoom level is in between 0.001 and 0.02";
};</code> |EXAMPLE1=
};</code> |EXAMPLE1=
____________________________________________________________________________________________


| |SEEALSO=
| |SEEALSO=

Revision as of 23:32, 16 January 2021

Hover & click on the images for description

Description

Description:
Checks if map zoom level is in between given interval (min,max)
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[_min,_max] call BIS_fnc_isInZoom;
Parameters:
Number - start of interval
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:
See also needed

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

Notes

Bottom Section