BIS fnc zoomLockEH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|eff= local


<!---|arg= local |Multiplayer Arguments=--->
|gr1= Map and Markers


<!---|eff= local |Multiplayer Effects=--->
|gr2= Event Handlers


| <pre>/*
|descr= Event handler function for locking the camera.
Author: Riccardo Argiolas


Description:
|s1= position call [[BIS_fnc_zoomLockEH]]
Event handler function for locking the camera


Parameters:
|p1= position: [[Position]] - position that the camera should focus
Select 0 - ARRAY: position where the camera should be placed and locked


Returns:
|r1=
None


Examples:
|x1= <sqf>[position player] call BIS_fnc_zoomLockEH;</sqf>
//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 --> |Description=
 
|[] call [[BIS_fnc_zoomLockEH]]|Syntax=
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Map|{{uc:zoomLockEH}}]]
[[Category:Functions|{{uc:zoomLockEH}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:zoomLockEH}}]]

Latest revision as of 16: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