{"name":"lockDriver","operator":null,"title":"lockDriver","type":"command","url":"https://community.bistudio.com/wiki/lockDriver","revid":364987,"updated":"2024-07-04T19:58:05Z","groups":["Object Manipulation"],"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 driver position of the vehicle. This command must be executed where vehicle is local. This 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 lockDriver 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":"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":"lock","types":["Boolean"]}}],"examples":[{"text":"```sqf\nvehicleName lockDriver true;\n```","code":["vehicleName lockDriver true;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lock","setVehicleLock","lockedDriver","lockCargo","lockTurret"],"notes":[{"user":"Sa-Matra","date":"2023-04-03T03:34:25Z","text":"Locked seats also aren't allowed to be controlled remotely through UAV terminal."}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}