camSetFocus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 99358 by killzone_kid on 2017-04-03T17:10:09Z)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets camera focus range in format [distance, blur]. blur param - sets the camera focus blur. It does not automatically commit changes (see [[camCommit]]). Use [-1, -1] to disable focus completely. |= Description
| Sets camera focus range in format [distance, blur]. blur param - sets the camera focus blur. It does not automatically commit changes (see [[camCommit]]). Use [-1, -1] to disable focus completely. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| camera '''camSetFocus''' focusRange |= Syntax
| camera '''camSetFocus''' focusRange |SYNTAX=


|p1= camera: [[Object]] |= Parameter 1
|p1= camera: [[Object]] |PARAMETER1=


|p2= focusRange: [[Array]] |= Parameter 2
|p2= focusRange: [[Array]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_camera [[camSetFocus]] [50, 1];</code> |= Example 1
|x1= <code>_camera [[camSetFocus]] [50, 1];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[camCreate]], [[camCommand]], [[camDestroy]], [[camCommit]], [[camPrepareFocus]] |= See also
| [[camCreate]], [[camCommand]], [[camDestroy]], [[camCommit]], [[camPrepareFocus]] |SEEALSO=


}}
}}

Revision as of 15:35, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sets camera focus range in format [distance, blur]. blur param - sets the camera focus blur. It does not automatically commit changes (see camCommit). Use [-1, -1] to disable focus completely.
Groups:
Uncategorised

Syntax

Syntax:
camera camSetFocus focusRange
Parameters:
camera: Object
focusRange: Array
Return Value:
Nothing

Examples

Example 1:
_camera camSetFocus [50, 1];

Additional Information

See also:
camCreatecamCommandcamDestroycamCommitcamPrepareFocus

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

Notes

Bottom Section