{"name":"getPilotCameraRotation","operator":null,"title":"getPilotCameraRotation","type":"command","url":"https://community.bistudio.com/wiki/getPilotCameraRotation","revid":348962,"updated":"2023-11-08T14:45:40Z","groups":["Pilot Camera"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.64"}],"since":{"game":"arma3","name":"Arma 3","version":"1.64"},"arma3_since":"1.64","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Returns rotation (relative to the centered camera position) of the object airplane or helicopter pilotCamera .","syntaxes":[{"syntax":"getPilotCameraRotation object","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 in format [yaw (turn), pitch (elevation)]","types":["Array","Number"],"description":"positive values are left yaw and down pitch from the center. Returns [0,0] when camera is centered but also if object has no pilotCamera.","text":"Array of Numbers in format [yaw (turn), pitch (elevation)] - positive values are left yaw and down pitch from the center. Returns [0,0] when camera is centered but also if object has no pilotCamera."},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\n_pilotCamRot = getPilotCameraRotation vehicle player;\n```","code":["_pilotCamRot = getPilotCameraRotation vehicle player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["hasPilotCamera","getPilotCameraPosition","getPilotCameraDirection","getPilotCameraTarget","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Pilot Camera","Introduced with Arma 3 version 1.64","Scripting Commands"]}