{"name":"lockTurret","operator":null,"title":"lockTurret","type":"command","url":"https://community.bistudio.com/wiki/lockTurret","revid":377482,"updated":"2026-01-02T06:48:59Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Lock the gunner position of the vehicle turret.\nThis command will remove user \"get in\" action (not \"get out\") but will also stop player getting into vehicle via script commands unlike lock command.","syntaxes":[{"syntax":"vehicle lockTurret [turretPath, lock]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"},{"name":"lock","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"lock: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[turretPath, lock]","types":["Array"]}}],"examples":[{"text":"```sqf\nvehicleName lockTurret [[0,0], true];\n```","code":["vehicleName lockTurret [[0,0], true];"]},{"text":"```sqf\nvehicle player lockTurret [[0], true];\n```","code":["vehicle player lockTurret [[0], true];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lockedTurret","lockCargo","lockDriver","assignedVehicleRole","turretUnit","moveInTurret"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}