BIS fnc zoomOnArea: Difference between revisions
|  (Created page with "{{Function|= Comments  | arma3 |Game name=  |1.78|Game version=  <!---|arg= local |Multiplayer Arguments=--->  <!---|eff= local |Multiplayer Effects=--->  | <pre>/* 	Author: Z...") | m (infobox to template) | ||
| Line 29: | Line 29: | ||
|   	_xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker"] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 1 second. |   	_xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker"] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 1 second. | ||
| 	BIS_mapDisplay = (findDisplay 12 displayCtrl 51); ... ; _xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 2, BIS_mapDisplay] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 2 seconds. | 	BIS_mapDisplay = (findDisplay 12 displayCtrl 51); ... ; _xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 2, BIS_mapDisplay] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 2 seconds. | ||
| */</pre>{{ | */</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description= | ||
| |[] call [[BIS_fnc_zoomOnArea]]|Syntax= | |[] call [[BIS_fnc_zoomOnArea]]|Syntax= | ||
Revision as of 15:28, 2 April 2019
Description
- Description:
- /* Author: ZoZo Description: Map will zoom on the given area. Function always takes the longer side of the area to zoom on. Parameters: Select 0 - ARRAY: Area to zoom on Select 1 - ARRAY: Coordinates of the center Select 2 - (OPTIONAL) - NUMBER: time of the zoom operation. Default is 1 Select 3 - (OPTIONAL) - CONTROL: handler to the map display control (you can pass one if already exists, if not, handler is created) Select 4 - (OPTIONAL) - BOOL: whether we have to force the camera in position after the zoom. Returns: Amount of zoom (can be used for the check if the zoom operation is already done) Examples: _xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 5] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in 5 seconds. _xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker"] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 1 second. BIS_mapDisplay = (findDisplay 12 displayCtrl 51); ... ; _xHandle = [markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 2, BIS_mapDisplay] call BIS_fnc_zoomOnArea //zoom on the area given by the marker in default 2 seconds. */ Template:placeholder
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [] call BIS_fnc_zoomOnArea
- Parameters:
- parameter: Datatype - (Optional, default defValue) description
- Return Value:
- Datatype - description
Examples
- Example 1:
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
 
	