Arma 3 Scripting

BIS_fnc_getPitchBank

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

Returns the pitch and bank of an object, in degrees. Yaw can be found using the getDir 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

object call BIS_fnc_getPitchBank

Parameters:

Returns: Array of Numbers - format [pitch, bank]

Examples

Example 1

private _pitchBank = vehicle player call BIS_fnc_getPitchBank;

See also

BIS_fnc_setPitchBank · vectorDir · vectorUp · setVectorDirAndUp