{"name":"addSwitchableUnit","title":"addSwitchableUnit","type":"command","url":"https://community.bistudio.com/wiki/addSwitchableUnit","revid":325232,"updated":"2022-07-04T10:32:04Z","groups":["Team Switch"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Adds a unit to the list of units available for Team Switch. Units marked as playable in editor are automatically switchable.\nThis command adds non-playable unit into array of switchableUnits and makes them available for teamSwitch. **Singleplayer only!**","syntaxes":[{"syntax":"addSwitchableUnit unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["addSwitchableUnit bob;"]}],"see_also":["teamSwitch","removeSwitchableUnit","switchableUnits"]}