BIS fnc zoomLockEH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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(...)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.78


|1.78
|eff= local


|gr1 = Map and Markers
|gr1= Map and Markers


<!---|arg= local |Multiplayer Arguments=--->
|gr2= Event Handlers


<!---|eff= local |Multiplayer Effects=--->
|descr= Event handler function for locking the camera.


| <pre>/*
|s1= position call [[BIS_fnc_zoomLockEH]]
Author: Riccardo Argiolas


Description:
|p1= position: [[Position]] - position that the camera should focus
Event handler function for locking the camera


Parameters:
|r1=
Select 0 - ARRAY: position where the camera should be placed and locked


Returns:
|x1= <sqf>[position player] call BIS_fnc_zoomLockEH;</sqf>
None


Examples:
|seealso= [[BIS_fnc_zoomLock]] [[BIS_fnc_zoomUnlock]]
//format the code to run for the Event Handler
_codeString = format["[%1] call BIS_fnc_zoomLockEH;", _centerOfLock];
 
//start the draw EH
missionNamespace setVariable ["BIS_zoomLockHandle", _map ctrladdeventhandler ["draw", _codeString]];
*/</pre>{{placeholder}}<!-- Remove this after fill-in -->
 
|[] call [[BIS_fnc_zoomLockEH]]
 
|p1= parameter: Datatype - (Optional, default defValue) description
 
|Datatype - description
 
|x1= <code></code>
 
|exec= call
 
|
}}
}}
[[Category:Functions|{{uc:zoomLockEH}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:zoomLockEH}}]]

Latest revision as of 15:45, 8 November 2023

Hover & click on the images for description

Description

Description:
Event handler function for locking the camera.
Execution:
call
Groups:
Map and MarkersEvent Handlers

Syntax

Syntax:
position call BIS_fnc_zoomLockEH
Parameters:
position: Position - position that the camera should focus
Return Value:
Return value needed

Examples

Example 1:
[position player] call BIS_fnc_zoomLockEH;

Additional Information

See also:
BIS_fnc_zoomLock BIS_fnc_zoomUnlock

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