{"name":"selectThrowable","operator":null,"title":"selectThrowable","type":"command","url":"https://community.bistudio.com/wiki/selectThrowable","revid":369741,"updated":"2024-10-08T15:05:51Z","groups":["Weapons","Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Selects current throwable, which will be launched if the user presses <kbd>G</kbd>.","syntaxes":[{"syntax":"unit selectThrowable throwable","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"throwable","type":"String","optional":false,"default":null,"description":"either the name of the throwable magazine or the name of the throwable muzzle","types":["String"],"since":null,"text":"throwable: String - either the name of the throwable magazine or the name of the throwable muzzle"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success","text":"Boolean - true on success"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"throwable","types":["String"]}}],"examples":[{"text":"```sqf\nplayer selectThrowable \"SmokeShellGreen\";\n```","code":["player selectThrowable \"SmokeShellGreen\";"]},{"text":"```sqf\nplayer selectThrowable \"SmokeShellGreenMuzzle\";\n```","code":["player selectThrowable \"SmokeShellGreenMuzzle\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["throwables","isThrowable","currentThrowable","selectWeapon","currentWeapon","currentMagazine","currentMuzzle","BIS_fnc_isThrowable"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Command Group: Weapons","Introduced with Arma 3 version 2.18","Scripting Commands"]}