BIS fnc zoomLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ")
m (Some wiki formatting)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|gr1= Map and Markers


|gr1 = Map and Markers |GROUP1=
|eff= local


<!---|arg= local |Multiplayer Arguments=--->
|descr= Locks the camera in place when the map is open.


|eff= local |Multiplayer Effects=
|s1= [cameraCenter] call [[BIS_fnc_zoomLock]]


| Locks the camera in place when the map is open. |Description=
|p1= cameraCenter: [[Array]] format [[Position#Introduction|Position2D]] - (Optional, default [0, 0]) position where the camera should be placed and locked


|cameraCenter call [[BIS_fnc_zoomLock]]|Syntax=
|r1= [[Nothing]]


|p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked |Parameter 1=
|x1= <sqf>[[0, 0]] call BIS_fnc_zoomLock;</sqf>


|[[Nothing]]|Return value=
|seealso= [[BIS_fnc_zoomUnlock]] [[BIS_fnc_zoomLockEH]]
 
}}
|x1= <code><nowiki>[</nowiki>[0, 0]] [[call]] [[BIS_fnc_zoomLock]];</code>|Example 1=
 
|exec= call |Execution=


| [[BIS_fnc_zoomUnlock]], [[BIS_fnc_zoomLockEH]]|See also=
{{Note
|user= Poslovitch
|timestamp= 20200422162900
|text= In '''{{arma3}} v1.98.146303''', closing the map after running this function '''does not unlock''' the map's camera. One must use [[BIS_fnc_zoomUnlock]] to allow the player to move the camera again.
}}
}}
[[Category:Functions|{{uc:zoomLock}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:zoomLock}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 22, 2020 - 16:29 (UTC)</dd>
<dt class="note">[[User:Poslovitch|Poslovitch]]</dt>
<dd class="note">
On '''Arma 3 1.98.146303''', closing the map after running this function '''does not unlock''' the map's camera. One must use [[BIS_fnc_zoomUnlock]] to allow the player to move the camera again.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 17:48, 13 July 2022

Hover & click on the images for description

Description

Description:
Locks the camera in place when the map is open.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[cameraCenter] call BIS_fnc_zoomLock
Parameters:
cameraCenter: Array format Position2D - (Optional, 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_zoomUnlock BIS_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
Poslovitch - c
Posted on Apr 22, 2020 - 16:29 (UTC)
In Arma 3 v1.98.146303, closing the map after running this function does not unlock the map's camera. One must use BIS_fnc_zoomUnlock to allow the player to move the camera again.