{"name":"addSwitchableUnit","operator":null,"title":"addSwitchableUnit","type":"command","url":"https://community.bistudio.com/wiki/addSwitchableUnit","revid":325232,"updated":"2022-07-04T10:32:04Z","groups":["Team Switch"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"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":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\naddSwitchableUnit bob;\n```","code":["addSwitchableUnit bob;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["teamSwitch","removeSwitchableUnit","switchableUnits"],"notes":[],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Team Switch","Introduced with Armed Assault version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}