BIS fnc zoomLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
(Added desc, examples, parameters, returns, see also)
Line 9: Line 9:
<!---|eff= local |Multiplayer Effects=--->
<!---|eff= local |Multiplayer Effects=--->


| <pre>/*
| Locks the camera in place when the map is open. |Description=
Author: Riccardo Argiolas


Description:
|[cameraCenter] call [[BIS_fnc_zoomLock]]|Syntax=
Function that locks the camera in place when the map is open.


Parameters:
|p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked |Parameter 1=
Select 0 - ARRAY: position where the camera should be placed and locked


Returns:
|[[Nothing]]|Return value=
None


Examples:
|x1= <code><nowiki>[</nowiki>[0, 0]] [[call]] BIS_fnc_zoomLock;</code>|Example 1=
[_cameraCenter] call BIS_fnc_zoomLock;
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=
 
|[] call [[BIS_fnc_zoomLock]]|Syntax=
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=


|exec= call |Execution=
|exec= call |Execution=


| |See also=
| [[BIS_fnc_zoomUnlock]], [[BIS_fnc_zoomLockEH]]|See also=
}}
}}



Revision as of 17:28, 22 April 2020

Hover & click on the images for description

Description

Description:
Locks the camera in place when the map is open.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[cameraCenter] call BIS_fnc_zoomLock
Parameters:
cameraCenter: Position2D - (default [0, 0]) position where the camera should be placed and locked
Return Value:
Nothing

Examples

Example 1:
[[0, 0]] call BIS_fnc_zoomLock;

Additional Information

See also:
BIS_fnc_zoomUnlockBIS_fnc_zoomLockEH

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