Page MenuHomeFeedback Tracker

Can't remove Binoculars from uniform/vest/backpack containers with script commands
Assigned, WishlistPublic

Description

You cannot remove the Binoculars (Probably more but untested) from the uniform/vest/backpack containers.

Tested with both removeItem and removeWeapon and nothing, it does remove its self with removeWeapon if the binocular is in its binoc slot.

Details

Legacy ID
2525898440
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Add binocs to a container: player addItem "Binocular"; OR drag the binocs from the assigned slot to a container.
  2. player removeWeapon "Binocular"; player removeItem "Binocular";

Event Timeline

TAWTonic edited Steps To Reproduce. (Show Details)Mar 29 2014, 3:12 PM
TAWTonic edited Additional Information. (Show Details)
TAWTonic set Category to Scripting.
TAWTonic set Reproducibility to Always.
TAWTonic set Severity to None.
TAWTonic set Resolution to Open.
TAWTonic set Legacy ID to 2525898440.May 7 2016, 6:18 PM
TAWTonic edited a custom field.
Bohemia added a subscriber: AD2001.Mar 29 2014, 3:12 PM

Errm,
have you tried unassigning the binocalur before removing?
https://community.bistudio.com/wiki/unassignItem
As far as I remember, the same happened with NV goggles. They just didn't disappear with only removeWeapon or removeItem.
Not sayin' good night, just sayin'...

The thing is, unassignItem is meant for unlinking it from it's designated slot / container. You can simply use the in-game inventory GUI to move the binoculars from the bino slot / container and into your inventory and you can't remove it with removeWeapon or removeItem. That's the issue that is present. Once a binocular based item is in a inventory container it can't be removed via script, the only work-around way is to assign the item then use removeWeapon but we shouldn't have to create work-arounds for a scripting command that should already remove it.

Items such as NV Goggles remove just fine from inventory containers with removeItem.

Cenwulf added a subscriber: Cenwulf.May 7 2016, 6:18 PM

Can confirm this is true of all binocular type items (rangefinder and laser designator). Have tried combinations of the following; removeItem, unassignItem, removeWeapon and removeWeaponCargo.

Instead of creating a new ticket for this it appears that with the ARMA 3 1.18 Build and current Dev-build (5/20/2014) the issue has spread to all weapon based entities.
You cannot remove any weapon type from any container with removeItem, removeItemFromXYZ. This was working before Stable build 1.18 (1.14 if I recall).

Removing items them selves works just fine such as Scopes, Suppressors, glasses, hats, etc but not weapons.

vbawol added a subscriber: vbawol.May 7 2016, 6:18 PM

Seeing the same thing here Tonic. Would be nice if this could be fixed with the addition of removeWeaponCargo / removeWeaponCargoGlobal commands.