{"name":"assignAsDriver","title":"assignAsDriver","type":"command","url":"https://community.bistudio.com/wiki/assignAsDriver","revid":369098,"updated":"2024-09-03T10:25:27Z","groups":["Unit Control"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"global"},"description":"Assign a unit as driver of a vehicle. Used together with orderGetIn to order subordinate units to get in as driver of a specific vehicle. Before usage of this command a subordinate unit has not got the option to get into the driver place of the vehicle.\n\n> [!NOTE]\n> See AI Group Vehicle Management for more information.","syntaxes":[{"syntax":"unitName assignAsDriver vehicleName","params":[{"name":"unitName","type":"Object","type_expr":"Object"},{"name":"vehicleName","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unitName"},"right":{"text":"vehicleName"}}],"examples":[{"code":["_soldier1 assignAsDriver _tank;\n[_soldier1] orderGetIn true;"]}],"see_also":["assignAsCommander","assignAsGunner","assignAsCargo","assignAsTurret","assignAsCargoIndex","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","assignedVehicleRole","assignedVehicle","unassignVehicle","leaveVehicle","fullCrew"]}