---
name: "getPilotCameraRotation"
type: command
status: ok
groups: ["Pilot Camera"]
arma3_since: "1.64"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getPilotCameraRotation
revid: 348962
updated: 2023-11-08T14:45:40Z
---

# getPilotCameraRotation

*Command · Pilot Camera · Arma 3 v1.64*

Locality: arguments **local**

## Description

Returns rotation (relative to the centered camera position) of the object airplane or helicopter pilotCamera .

## Syntax

```sqf
getPilotCameraRotation object
```

**Parameters:**

- `object`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s in format [yaw (turn), pitch (elevation)] - positive values are left yaw and down pitch from the center. Returns [0,0] when camera is centered but also if object has no pilotCamera.

## Examples

### Example 1

```sqf
_pilotCamRot = getPilotCameraRotation vehicle player;
```

## See also

[hasPilotCamera](../commands/hasPilotCamera.md) · [getPilotCameraPosition](../commands/getPilotCameraPosition.md) · [getPilotCameraDirection](../commands/getPilotCameraDirection.md) · [getPilotCameraTarget](../commands/getPilotCameraTarget.md) · [setPilotCameraDirection](../commands/setPilotCameraDirection.md) · [setPilotCameraRotation](../commands/setPilotCameraRotation.md) · [setPilotCameraTarget](../commands/setPilotCameraTarget.md)

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