BIS fnc zoomLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (added local effects, slight improvement in syntax, added arma version in my note)
Line 7: Line 7:
<!---|arg= local |Multiplayer Arguments=--->
<!---|arg= local |Multiplayer Arguments=--->


<!---|eff= local |Multiplayer Effects=--->
|eff= local |Multiplayer Effects=


| Locks the camera in place when the map is open. |Description=
| Locks the camera in place when the map is open. |Description=


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


|p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked |Parameter 1=
|p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked |Parameter 1=
Line 33: Line 33:
<dt class="note">[[User:Poslovitch|Poslovitch]]</dt>
<dt class="note">[[User:Poslovitch|Poslovitch]]</dt>
<dd class="note">
<dd class="note">
Closing the map after running this function '''does not unlock''' the map's camera. One must use [[BIS_fnc_zoomUnlock]] to get rid of the lock.
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>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 19:52, 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
Posted on April 22, 2020 - 16:29 (UTC)
Poslovitch
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.