---
name: "lockedCameraTo"
type: command
status: ok
groups: ["Camera Control"]
arma3_since: "2.08"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lockedCameraTo
revid: 378357
updated: 2026-04-02T16:48:58Z
---

# lockedCameraTo

*Command · Camera Control · Arma 3 v2.08*

Locality: arguments **local**

## Description

Return the turret lock target.

> [!NOTE]
> The command is local to the **turret**, not the vehicle.

## Syntax

```sqf
vehicle lockedCameraTo turretPath
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `turretPath`: Turret Path. Use an empty array to select the gunner's turret by default

**Returns:** Can be one of:
- [Nothing](../topics/Nothing.md) - not locked
- [Object](../topics/Object.md) - if locked to an object
- [PositionASL](../topics/Position.md#positionasl) - if locked to a position

## Examples

### Example 1

```sqf
vehicle player lockedCameraTo [];
```

## See also

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

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