{"name":"assignAsCommander","title":"assignAsCommander","type":"command","url":"https://community.bistudio.com/wiki/assignAsCommander","revid":369099,"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 commander of a vehicle. Used together with orderGetIn to order subordinate units to get in as commander of a specific vehicle.\nBefore usage of this command a subordinate unit has not got the option to get into the commander place of the vehicle.\n\n> [!NOTE]\n> See AI Group Vehicle Management for more information.","syntaxes":[{"syntax":"unitName assignAsCommander 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 assignAsCommander _tank;\n[_soldier1] orderGetIn true;"]}],"see_also":["assignAsDriver","assignAsGunner","assignAsCargo","assignAsTurret","assignAsCargoIndex","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","assignedVehicleRole","assignedVehicle","unassignVehicle","leaveVehicle","fullCrew"]}