{"name":"BIS_fnc_getPitchBank","title":"BIS fnc getPitchBank","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getPitchBank","revid":327553,"updated":"2022-07-12T22:38:17Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the pitch and bank of an object, in degrees. **Yaw** can be found using the getDir command.\n**Pitch** is 0 when the object is level; 90 when pointing straight up; and -90 when pointing straight down.\n**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.\n\n> [!IMPORTANT]\n> 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.","syntaxes":[{"syntax":"object call BIS_fnc_getPitchBank","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Array of Numbers","type_expr":"Array<Number>","description":"format [pitch, bank]"}}],"examples":[{"code":["private _pitchBank = vehicle player call BIS_fnc_getPitchBank;"]}],"see_also":["BIS_fnc_setPitchBank","vectorDir","vectorUp","setVectorDirAndUp"]}