BIS fnc zoomLock: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Position2D" to "Position2D") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
|gr1= Map and Markers | |gr1= Map and Markers | ||
|eff= | |eff= local | ||
|descr= Locks the camera in place when the map is open. | |descr= Locks the camera in place when the map is open. | ||
|s1= cameraCenter call [[BIS_fnc_zoomLock]] | |s1= [cameraCenter] call [[BIS_fnc_zoomLock]] | ||
|p1= cameraCenter: [[Position#Introduction|Position2D]] - (default [0, 0]) position where the camera should be placed and locked | |p1= cameraCenter: [[Array]] format [[Position#Introduction|Position2D]] - (Optional, default [0, 0]) position where the camera should be placed and locked | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[[0, 0]] call BIS_fnc_zoomLock;</sqf> | ||
|seealso= [[BIS_fnc_zoomUnlock]] | |seealso= [[BIS_fnc_zoomUnlock]] [[BIS_fnc_zoomLockEH]] | ||
}} | }} | ||
{{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. | |||
}} | |||
Latest revision as of 16:48, 13 July 2022
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:
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
- 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.