{"name":"BIS_fnc_getPitchBank","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the pitch and bank of an object, in degrees. **Yaw** can be found using the getDir command.\n\n**Pitch** is 0 when the object is level; 90 when pointing straight up; and -90 when pointing straight down.\n\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","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":"format [pitch, bank]","text":"Array of Numbers - format [pitch, bank]"}}],"examples":[{"text":"```sqf\nprivate _pitchBank = vehicle player call BIS_fnc_getPitchBank;\n```","code":["private _pitchBank = vehicle player call BIS_fnc_getPitchBank;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_setPitchBank","vectorDir","vectorUp","setVectorDirAndUp"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}