{"name":"getPilotCameraOpticsMode","operator":null,"title":"getPilotCameraOpticsMode","type":"command","url":"https://community.bistudio.com/wiki/getPilotCameraOpticsMode","revid":349193,"updated":"2023-11-08T14:50:40Z","groups":["Pilot Camera"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.14"}],"since":{"game":"arma3","name":"Arma 3","version":"2.14"},"arma3_since":"2.14","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Returns the optics mode index (zoom) for the pilotCamera","syntaxes":[{"syntax":"getPilotCameraOpticsMode 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":"Number","types":["Number"],"description":"the index of the optic mode","text":"Number - the index of the optic mode"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\ngetPilotCameraOpticsMode vehicle player\n```","code":["getPilotCameraOpticsMode vehicle player"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setPilotCameraOpticsMode","hasPilotCamera","getPilotCameraPosition","getPilotCameraDirection","getPilotCameraRotation","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","getPilotCameraTarget","getTurretOpticsMode","setTurretOpticsMode"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Pilot Camera","Introduced with Arma 3 version 2.14","Scripting Commands"]}