BIS_fnc_zoomOnArea

From Bohemia Interactive Community
Revision as of 16:28, 2 April 2019 by Erentar (talk | contribs) (infobox to template)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

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