Difference between revisions of "BIS fnc zoomOnArea"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ")
Line 1: Line 1:
{{Function|= Comments
+
{{Function|Comments=
  
 
| arma3 |Game name=
 
| arma3 |Game name=

Revision as of 22:59, 26 June 2020

Introduced with Arma 3 version 1.781.78
Hover & click on the images for descriptions

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.
*/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)

Syntax

Syntax:
[] call BIS_fnc_zoomOnArea
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example:
Example needed

Additional Information

Execution:
call
See also:
See also needed

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.