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



Introduced in

Version:1.64

Description

Description:

Sets the focus distance for weapons with Depth Of Field (DOF) features. The simulation setting Use DOF for Optics (see Simulation Settings in the VBS3 Administrator Manual) must be enabled for this command to have an effect. If focus adjustments are mapped to a key, then that input overrides the settings from this command.

Syntax

Syntax:setFocus distance
Parameters:
  • distance: Number - Distance (in meters) at which objects should be in focus.
Return Value:Nothing

Examples

Examples:
setFocus 200;

Additional Information

See also: getFocus, setOpticsDOF
Multiplayer:
Problems:

Notes