{"name":"periscopeElevation","operator":null,"title":"periscopeElevation","type":"command","url":"https://community.bistudio.com/wiki/periscopeElevation","revid":378227,"updated":"2026-03-17T23:24:58Z","groups":["Object Manipulation","Animations"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.00"}],"since":{"game":"arma3","name":"Arma 3","version":"2.00"},"arma3_since":"2.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns current periscope elevation value, see also elevatePeriscope.","syntaxes":[{"syntax":"vehicle periscopeElevation turretPath","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"vehicle with periscope tech","types":["Object"],"since":null,"text":"vehicle: Object - vehicle with periscope tech"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"}],"returns":{"type":"Array format [elevation, isLocked]:","types":["Array"],"description":"elevation: Number - current periscope elevation value. -1 in case of an invalid turret - isLocked: Boolean - whether or not user override is blocked","text":"Array format [elevation, isLocked]:\n- elevation: Number - current periscope elevation value. -1 in case of an invalid turret\n- isLocked: Boolean - whether or not user override is blocked"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"turretPath","types":["Turret Path"]}}],"examples":[{"text":"```sqf\n_eddie periscopeElevation [0] params [\"_elevation\", \"_isLocked\"];\n```","code":["_eddie periscopeElevation [0] params [\"_elevation\", \"_isLocked\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["elevatePeriscope","animationPhase","allTurrets","Arma 3: Event Handlers"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Animations","Command Group: Object Manipulation","Introduced with Arma 3 version 2.00","Scripting Commands"]}