---
name: "currentZeroing"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentZeroing
revid: 378508
updated: 2026-05-03T17:08:03Z
---

# currentZeroing

*Command · Weapons · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

Locality: arguments **local**

## Description

Returns current zeroing.

## Syntax

### Syntax 1

```sqf
currentZeroing object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - unit (vehicles are not supported)

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

### Syntax 2

*since arma3 2.04*

```sqf
object currentZeroing [weaponClass, muzzleClass]
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - unit (vehicles are not supported)
- `weaponClass`: [String](../topics/String.md) - class name of weapon
- `muzzleClass`: [String](../topics/String.md) - (Optional, default currently active muzzle or first that is found) muzzle classname

**Returns:** [Array](../topics/Array.md) with [distance, zeroingIndex]
- distance: [Number](../topics/Number.md) - distance in meters, Since Arma 3 v2.20 supports laser rangefinder value
- zeroingIndex: [Number](../topics/Number.md) - 0 ≙ 50 m, 1 ≙ 100 m, 2 ≙ 150 m, ..., -1 for laser rangefinding

## Examples

### Example 1

```sqf
private _zeroing = currentZeroing player;
```

### Example 2

```sqf
(player currentZeroing ["arifle_MX_GL_F", "GL_3GL_F"]) params ["_distance", "_zeroingIndex"];
```

### Example 3

```sqf
private _zeroing = currentZeroing myVehicle; // does not work
private _zeroing = currentZeroing gunner myVehicle; // works
```

## See also

[setWeaponZeroing](../commands/setWeaponZeroing.md)

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