BIS fnc zoomLockEH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
(page formatting)
Line 1: Line 1:
{{Function
{{RV|type=Command


| arma3
|game1= arma3


|1.78
|version1= 1.78


|gr1 = Map and Markers
|eff= local


<!---|arg= local |Multiplayer Arguments=--->
|serverExec=


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


| <pre>/*
|gr2= Event Handlers
Author: Riccardo Argiolas


Description:
|descr= Event handler function for locking the camera.
Event handler function for locking the camera


Parameters:
|s1= position call [[BIS_fnc_zoomLockEH]]
Select 0 - ARRAY: position where the camera should be placed and locked


Returns:
|p1= position: [[Position]] - Position that the camera should focus
None


Examples:
|x1= <code><nowiki>[</nowiki>[[position]] [[player]]] [[call]] [[BIS_fnc_zoomLockEH]];</code>
//format the code to run for the Event Handler
_codeString = format["[%1] call BIS_fnc_zoomLockEH;", _centerOfLock];


//start the draw EH
|seealso= [[BIS_fnc_zoomLock]] [[BIS_fnc_zoomUnlock]]
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}}]]

Revision as of 01:52, 19 January 2021

Hover & click on the images for description

Description

Description:
Event handler function for locking the camera.
Groups:
MapEvent 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