camSetFov

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Set the zoom level (Field Of View) of the given camera.
The zoom level is from 0.01 for the nearest and 2 for the furthest zoom value, with a default zoom level of 0.75
The angle of the field of view is atan(FOV)*2 radians when in 4:3 aspect ratio.

Syntax

Syntax:
camera camSetFov level
Parameters:
camera: Object - object of type "camera"
level: Number - zoom level, range 0.01 to 2 (see description above)
Return Value:
Nothing

Examples

Example 1:
_cam camSetFov 0.75;

Additional Information

Multiplayer:
-
See also:
camSetFovRangecamSetTarget

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section