---
name: "setPilotCameraRotation"
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/setPilotCameraRotation
revid: 323076
updated: 2022-06-28T21:43:12Z
---

# setPilotCameraRotation

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

Locality: arguments **local**

## Description

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

## Syntax

```sqf
object setPilotCameraRotation rotation
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `rotation`: [Array](../topics/Array.md) - [x,y] - format [yaw (turn), pitch (elevation)]. Values are in radians, positive values are left yaw and down pitch from the center.

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

## Examples

### Example 1

```sqf
vehicle player setPilotCameraRotation [rad 90, rad 45];
```

## See also

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

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