getObjectFOV

From Bohemia Interactive Community
Revision as of 00:00, 3 August 2019 by Killzone Kid (talk | contribs) (doesn't change if custom FOV is used)
Jump to navigation Jump to search
-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.95|1.95]]
Hover & click on the images for description

Description

Description:
Returns Field of View of the given object in radians. Static objects return default value, which is 1. FOV of objNull is 0. Object FOV is indirectly connected with optics magnification or player view zoom, the narrower the angle the greater the zoom.

The FOV returned by this command doesn't change if user has custom FOV set in profile. Use it in combination with getResolution to adjust for the difference if required.
Groups:
Uncategorised

Syntax

Syntax:
getObjectFOV object
Parameters:
object: Object
Return Value:
Number - FOV in radians

Examples

Example 1:
_objFOV = getObjectFOV player;
Example 2:
_objFOVinDegrees = deg getObjectFOV cursorObject;
Example 3:
_objType = getObjectFOV vehicle player;

Additional Information

See also:
getObjectTypegetResolution

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

[[Category:Introduced with arma3dev version 1.95]][[ Category: arma3dev: New Scripting Commands | GETOBJECTFOV]][[ Category: arma3dev: Scripting Commands | GETOBJECTFOV]]

Notes

Bottom Section