{"name":"elevatePeriscope","operator":null,"title":"elevatePeriscope","type":"command","url":"https://community.bistudio.com/wiki/elevatePeriscope","revid":377904,"updated":"2026-01-05T18:01:10Z","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":"Elevates periscope of a vehicle. Vehicles in Arma 3 which are compatible with this tech are Strider, remote laser designators, the robot arm on Eddie, etc.\nPlease note that SDV submarine has a different periscope, which is just an animated selection and could be raised and lowered with animate command.\n\n> [!NOTE]\n> - a user can immediately override any elevation in progress by using assigned keyboard keys. To block user input see the *blockUserInput* parameter.\n> - a PeriscopeElevationChanged entity event handler is also provided.","syntaxes":[{"syntax":"vehicle elevatePeriscope [turret, elevation, speed, blockUserInput]","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":"turret","type":"Turret Path","optional":false,"default":null,"description":"turret on which periscope is located","types":["Turret Path"],"since":null,"text":"turret: Turret Path - turret on which periscope is located"},{"name":"elevation","type":"Number","optional":false,"default":null,"description":"elevation range 0..1","types":["Number"],"since":null,"text":"elevation: Number - elevation range 0..1"},{"name":"speed","type":"Number or Boolean","optional":true,"default":"-1","description":"config anim speed multiplier, 2 - twice as fast, 0.5 - twice as slow, etc. -1 - default config speed. If true is used as param, the change in elevation is almost instant","types":["Number","Boolean"],"since":null,"text":"speed: Number or Boolean - (Optional, default -1) config anim speed multiplier, 2 - twice as fast, 0.5 - twice as slow, etc. -1 - default config speed. If true is used as param, the change in elevation is almost instant"},{"name":"blockUserInput","type":"Boolean","optional":true,"default":"false","description":"true to disable user ability to control periscope with keyboard. The change is persistent unless set to false again","types":["Boolean"],"since":null,"text":"blockUserInput: Boolean - (Optional, default false) true to disable user ability to control periscope with keyboard. The change is persistent unless set to false again"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[turret, elevation, speed, blockUserInput]","types":["Array"]}}],"examples":[{"text":"```sqf\n_eddie elevatePeriscope [[0], 0.75, 0.1];\n```","code":["_eddie elevatePeriscope [[0], 0.75, 0.1];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["periscopeElevation","animate","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"]}