BIS fnc zoomOnArea: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ") |
m (page filled) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | |game1= arma3 | ||
|1.78 | |version1= 1.78 | ||
<! | <!--|serverExec= server--> | ||
<! | <!--|arg= local--> | ||
| | <!--|eff= local--> | ||
|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 | ||
|exec= call | | |x1= <code>[[openMap]] [[true]]; <nowiki>[</nowiki>[[markerSize]] "BIS_areaMarker", [[markerPos]] "BIS_areaMarker", 5] [[call]] [[BIS_fnc_zoomOnArea]];</code> | ||
|exec= call | |||
|seealso= [[BIS_fnc_zoomLock]] [[BIS_fnc_zoomUnlock]] | |||
}} | }} | ||
Revision as of 10:35, 20 July 2020
Description
- Description:
- Map will zoom on the given area. Function always takes the longer side of the area to zoom on.
- Execution:
- call
- Groups:
- Uncategorised
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:
openMap true; [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 5] call BIS_fnc_zoomOnArea;
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