BIS fnc zoomOnArea: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.78|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author: Z...") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.78 | |||
| | |gr1= Map and Markers | ||
|descr= Map will zoom on the given area. Function always takes the longer side of the area to zoom on. | |||
|s1= [area, center, time, handler, forceCam] call [[BIS_fnc_zoomOnArea]] | |||
| | |p1= area: [[Array]] - area to zoom on | ||
|p2= center: [[Array]] - coordinates of the center | |||
|p3= time: [[Number]] - (Optional, default 1) time of the zoom operation | |||
|p4= handler: [[Control]] - (Optional, default [[nil]]) handler to the map display control (you can pass one if already exists, if not, handler is created) | |||
|p5= forceCam: [[Boolean]] - (Optional, default [[false]]) whether to force the camera in position after the zoom. | |||
| | |r1= [[Number]] - zoom level | ||
| | |x1= <sqf> | ||
openMap true; | |||
[markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 5] call BIS_fnc_zoomOnArea; | |||
</sqf> | |||
| | |seealso= [[BIS_fnc_zoomLock]] [[BIS_fnc_zoomUnlock]] | ||
}} | }} | ||
Latest revision as of 22:47, 31 May 2022
Description
- Description:
- Map will zoom on the given area. Function always takes the longer side of the area to zoom on.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [area, center, time, handler, forceCam] call BIS_fnc_zoomOnArea
- Parameters:
- area: Array - area to zoom on
- center: Array - coordinates of the center
- time: Number - (Optional, default 1) time of the zoom operation
- handler: Control - (Optional, default nil) handler to the map display control (you can pass one if already exists, if not, handler is created)
- forceCam: Boolean - (Optional, default false) whether to force the camera in position after the zoom.
- Return Value:
- Number - zoom level
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_zoomLock BIS_fnc_zoomUnlock
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