---
name: "BIS_fnc_getPitchBank"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_getPitchBank
revid: 327553
updated: 2022-07-12T22:38:17Z
---

# BIS_fnc_getPitchBank

*Function · Object Manipulation · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **global**

## Description

Returns the pitch and bank of an object, in degrees. **Yaw** can be found using the [getDir](../commands/getDir.md) command.

**Pitch** is 0 when the object is level; 90 when pointing straight up; and -90 when pointing straight down.

**Bank** is 0 when level; 90 when the object is rolled to the right, -90 when rolled to the left, and 180 when rolled upside down.

> [!IMPORTANT]
> The **bank** returned by this command is not fully accurate, it can be off by up to 5% or so (depending on pitch) due to an unknown bug.

## Syntax

```sqf
object call BIS_fnc_getPitchBank
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s - format [pitch, bank]

## Examples

### Example 1

```sqf
private _pitchBank = vehicle player call BIS_fnc_getPitchBank;
```

## See also

[BIS_fnc_setPitchBank](../functions/BIS_fnc_setPitchBank.md) · [vectorDir](../commands/vectorDir.md) · [vectorUp](../commands/vectorUp.md) · [setVectorDirAndUp](../commands/setVectorDirAndUp.md)

<sub>Source: [BI Community Wiki — BIS fnc getPitchBank](https://community.bistudio.com/wiki/BIS_fnc_getPitchBank) (revision 327553).</sub>
