The removeItemFromBackpack (vest, uniforms also) produce an error when they encounter a magazine class item; works with weapon class items.
Description
Details
- Legacy ID
- 924821199
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
private ["_PlayerBackpackItemsArray "];
_PlayerBackpackItemsArray = backpackItems player;
{
player removeItemFromBackpack _x;
} forEach _PlayerBackpackItemsArray ;
Event Timeline
'RemoveItem' and 'RemoveItemFromXXX' also doesn't work with weapons even though the 'AddItem' variant does work with weapons.
EDIT: 'RemoveItem' also doesn't work with goggles.
Thank you japapatramtara.
I am not using the DEV build, so I can't test this, maybe someone else can help out with this. I will check it, when it is released into the stable branch.
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'.
Mass closing tickets marked as resolved more than 1 month ago.
If the issue is in fact not resolved, please create a new ticket referencing this one and ask for it to be re-opened.