BIS fnc camera setFocus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )F([a-z])" to "$1f$3")
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|gr1= Camera
|gr1= Camera


|descr= Returns camera focus.
|descr= Sets camera focus.


|s1= [camera, focusValues] call [[BIS_fnc_camera_setFocus]]
|s1= [camera, focusValues] call [[BIS_fnc_camera_setFocus]]


|p1= camera: [[Object]] - The camera
|p1= camera: [[Object]] - the camera


|p2= focusValues: [[Array]] - (Optional, default [-1,-1]) Focus values in format [distance, blur]
|p2= focusValues: [[Array]] - (Optional, default [-1, -1]) focus values in format [distance, blur]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[BIS_camera, [0.5,0.5]] [[call]] [[BIS_fnc_camera_setFocus]];</code>
|x1= <sqf>[BIS_camera, [0.5,0.5]] call BIS_fnc_camera_setFocus;</sqf>


|seealso= [[BIS_fnc_camera_getFocus]]
|seealso= [[BIS_fnc_camera_getFocus]]
}}
}}

Latest revision as of 12:29, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets camera focus.
Execution:
call
Groups:
Camera

Syntax

Syntax:
[camera, focusValues] call BIS_fnc_camera_setFocus
Parameters:
camera: Object - the camera
focusValues: Array - (Optional, default [-1, -1]) focus values in format [distance, blur]
Return Value:
Nothing

Examples

Example 1:
[BIS_camera, [0.5,0.5]] call BIS_fnc_camera_setFocus;

Additional Information

See also:
BIS_fnc_camera_getFocus

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