The removeItemFromBackpack (vest, uniforms also) produce an error when they encounter a magazine class item; works with weapon class items.
- Legacy ID
private ["_PlayerBackpackItemsArray "];
_PlayerBackpackItemsArray = backpackItems player;
player removeItemFromBackpack _x;
} forEach _PlayerBackpackItemsArray ;
The removeItem commands work now on weapons/magazines/glasses.
Though it seems the 'removeItems' command isn't accepting weapons/magazines/glasses.
An alternative would be just to use 'itemsWithMagazines' command in a loop with 'removeItem'.