---
name: "periscopeElevation"
type: command
status: ok
groups: ["Object Manipulation", "Animations"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/periscopeElevation
revid: 378227
updated: 2026-03-17T23:24:58Z
---

# periscopeElevation

*Command · Object Manipulation, Animations · Arma 3 v2.00*

## Description

Returns current periscope elevation value, see also [elevatePeriscope](../commands/elevatePeriscope.md).

## Syntax

```sqf
vehicle periscopeElevation turretPath
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - vehicle with periscope tech
- `turretPath`: Turret Path

**Returns:** [Array](../topics/Array.md) format [elevation, isLocked]:
- elevation: [Number](../topics/Number.md) - current periscope elevation value. -1 in case of an invalid turret
- isLocked: [Boolean](../topics/Boolean.md) - whether or not user override is blocked

## Examples

### Example 1

```sqf
_eddie periscopeElevation [0] params ["_elevation", "_isLocked"];
```

## See also

[elevatePeriscope](../commands/elevatePeriscope.md) · [animationPhase](../commands/animationPhase.md) · [allTurrets](../commands/allTurrets.md) · [Arma 3: Event Handlers](../topics/Event_Handlers.md)

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