{"name":"removePrimaryWeaponItem","operator":null,"title":"removePrimaryWeaponItem","type":"command","url":"https://community.bistudio.com/wiki/removePrimaryWeaponItem","revid":347501,"updated":"2023-09-24T01:03:45Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.70"}],"since":{"game":"arma3","name":"Arma 3","version":"0.70"},"arma3_since":"0.70","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Removes given weapon item, including magazine, from the primaryWeapon.","syntaxes":[{"syntax":"unit removePrimaryWeaponItem item","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":"item","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"item: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"item","types":["String"]}}],"examples":[{"text":"```sqf\nplayer removePrimaryWeaponItem \"acc_flashlight\";\n```","code":["player removePrimaryWeaponItem \"acc_flashlight\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addPrimaryWeaponItem","removeAllPrimaryWeaponItems","removeSecondaryWeaponItem","removeHandgunItem","removeBinocularItem"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.70","Scripting Commands","Scripting Commands: Global Effect"]}