Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.30

Description

Description:Sets the player focal plane.  Overrides the difficulty option Use DOF for optics (see Simulation Settings in the VBS3 Administrator Manual). If DOF for optics is used and the current video settings do not support it (it is currently associated with the level of post-processing effects, then a text message appears on the screen).

Syntax

Syntax:setOpticsDOF [focus, blur]
Parameters:
  • focus: Number - Can be:
    • -1: No override (default).
    • 0: Override, use auto focus.
    • >0: Distance of the focal plane, in meters.
  • blur: Number - Blur factor. Can be:
    • 0: No blur.
    • 1: Default blur.
Return Value:Nothing

Examples

Examples:setOpticsDOF [5, 0.5];

Additional Information

See also: getOpticsDOF, setFocus, getFocus
Multiplayer:
Problems:

Notes