{"name":"periscopeElevation","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","games":{"arma3":"2.00"},"since":"arma3 2.00","arma3_since":"2.00","description":"Returns current periscope elevation value, see also elevatePeriscope.","syntaxes":[{"syntax":"vehicle periscopeElevation turretPath","params":[{"name":"vehicle","type":"Object","description":"vehicle with periscope tech","type_expr":"Object"},{"name":"turretPath","type":"Turret Path","type_expr":"Turret Path"}],"returns":{"type":"Array","type_expr":"Array","description":"format [elevation, isLocked]:\n- 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\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","left":{"text":"vehicle"},"right":{"text":"turretPath"}}],"examples":[{"code":["_eddie periscopeElevation [0] params [\"_elevation\", \"_isLocked\"];"]}],"see_also":["elevatePeriscope","animationPhase","allTurrets","Arma 3: Event Handlers"]}