---
name: "setTurretOpticsMode"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "2.10"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setTurretOpticsMode
revid: 377497
updated: 2026-01-02T06:49:23Z
---

# setTurretOpticsMode

*Command · Turrets · Arma 3 v2.10*

Locality: arguments **local** · effect **local**

## Description

Set the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path instead of a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic.

## Syntax

### Syntax 1

```sqf
obj setTurretOpticsMode mode
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)
- `mode`: [Number](../topics/Number.md) - optic mode index

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
obj setTurretOpticsMode [turretPath, opticModeIndex]
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)
- `turretPath`: Turret Path
- `opticModeIndex`: [Number](../topics/Number.md) - optic mode index

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player setTurretOpticsMode 0;
```

### Example 2

```sqf
myTank setTurretOpticsMode [[-1], 1];
```

### Example 3

```sqf
myAircraft setTurretOpticsMode [[0, 0], 0];
```

## See also

[getTurretOpticsMode](../commands/getTurretOpticsMode.md) · [turretLocal](../commands/turretLocal.md) · [selectWeaponTurret](../commands/selectWeaponTurret.md) · [getPilotCameraOpticsMode](../commands/getPilotCameraOpticsMode.md) · [setPilotCameraOpticsMode](../commands/setPilotCameraOpticsMode.md)

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