BIS fnc zoomLock: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.78 | |1.78 | ||
|gr1 = Map and Markers | |gr1 = Map and Markers | ||
<!---|arg= local |Multiplayer Arguments=---> | <!---|arg= local |Multiplayer Arguments=---> | ||
|eff= local | |eff= local | ||
| Locks the camera in place when the map is open. | | Locks the camera in place when the map is open. | ||
|cameraCenter call [[BIS_fnc_zoomLock]] | |cameraCenter call [[BIS_fnc_zoomLock]] | ||
|p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked | |p1= cameraCenter: [[Position2D]] - (default [0, 0]) position where the camera should be placed and locked | ||
|[[Nothing]] | |[[Nothing]] | ||
|x1= <code><nowiki>[</nowiki>[0, 0]] [[call]] [[BIS_fnc_zoomLock]];</code> | |x1= <code><nowiki>[</nowiki>[0, 0]] [[call]] [[BIS_fnc_zoomLock]];</code> | ||
|exec= call | |exec= call | ||
| [[BIS_fnc_zoomUnlock]], [[BIS_fnc_zoomLockEH]] | | [[BIS_fnc_zoomUnlock]], [[BIS_fnc_zoomLockEH]] | ||
}} | }} | ||
Revision as of 10:10, 18 January 2021
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: 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.