---
name: "getObjectFOV"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getObjectFOV
revid: 309149
updated: 2022-05-03T14:11:55Z
---

# getObjectFOV

*Command · Object Manipulation · Arma 3 v1.96*

## Description

Returns Field of View of the given object in [rad](../commands/rad.md)ians. Static objects return default value, which is 1.
FOV of [objNull](../commands/objNull.md) is 0.
Object FOV is indirectly connected with optics magnification or player view zoom, the narrower the angle the greater the zoom.

> [!NOTE]
> The FOV returned by this command doesn't change if user has custom FOV set in profile. Use it in combination with [getResolution](../commands/getResolution.md) to adjust for the difference if required.

## Syntax

```sqf
getObjectFOV object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - for units it queries unit weapon optics/zoom, for vehicles - vehicle optics/zoom

**Returns:** [Number](../topics/Number.md) - FOV in [rad](../commands/rad.md)ians

## Examples

### Example 1

```sqf
private _objFOV = getObjectFOV player;
```

### Example 2

```sqf
private _objFOVinDegrees = deg getObjectFOV cursorObject;
```

### Example 3

Perceived distance to an object:

```sqf
private _vdist = (player distance _obj) * (getObjectFOV player / 0.75);
```

## See also

[getObjectType](../commands/getObjectType.md) · [getResolution](../commands/getResolution.md)

<sub>Source: [BI Community Wiki — getObjectFOV](https://community.bistudio.com/wiki/getObjectFOV) (revision 309149).</sub>
