Page MenuHomeFeedback Tracker

unit removeItem/removeWeapon "NVGoggles" doesn't work!
Closed, ResolvedPublic

Description

The command 'unit removeWeapon "NVGoggles"' doesn't work! It used to work in Arma 2. The removeitem doesn't work either... So I think it is a bug! It is currently not possible to remove the nvgoggles from a soldier. At least with the OPFOR normal rifleman. It doesn't work with 'removeallweapons' and 'removeallitems' neither.

Details

Legacy ID
4227803241
Severity
None
Resolution
Unable To Duplicate
Reproducibility
Always
Category
Editor
Steps To Reproduce

Open editor, insert an OPFOR soldier. In the init field, insert one of the command I spoke about (removeweapon or removeitem or removeallweapons or removeallitems). Preview and you can still use the NV Goggles...

Event Timeline

papyrabbit08 edited Additional Information. (Show Details)
papyrabbit08 set Category to Editor.
papyrabbit08 set Reproducibility to Always.
papyrabbit08 set Severity to None.
papyrabbit08 set Resolution to Unable To Duplicate.
papyrabbit08 set Legacy ID to 4227803241.May 7 2016, 1:58 PM
Bohemia added a subscriber: Robalo.May 4 2013, 1:20 PM

Note: if you add NVGoggles to a civilian, then you can take them back. It just doesn't work with an OPFOR soldier that has them by default.

Nicolii added a subscriber: Nicolii.May 7 2016, 1:58 PM

To remove "NVGoggles" you have to first unassign them from the character.

this UnassignItem "NVGoggles"; this RemoveItem "NVGoggles";

or

removeAllAssignedItems this;

Sure I know that this is a bad excuse and it shouldn't stay in the game this way, you should be able to remove "NVGoggles" with out first unassigning them. But it's a temporary fix and it works (in the latest DEV build).

At least this is working for me, tell me if it doesn't work for you and I'll see if there is another temporary fix for it that you could use.

Also check to see if you had the -RemoveAllItems this;- command working (without the dashes) just to make sure you had the scripting right.

You should also correct this title of this ticket saying that RemoveItem didn't work as "NVGoggles" aren't a weapon but an inventory item.

@Nicolii: Thanks! You're right! But I still think this might be a bug...

This code doesn't have any effect on dead bodies, thus you can't script removal of any of their assigned items: deadguy unassignItem "NVGoggles".

MadDogX added a subscriber: MadDogX.May 7 2016, 1:58 PM

Unable to reproduce in latest dev build.