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.
- Legacy ID
- Unable To Duplicate
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...
To remove "NVGoggles" you have to first unassign them from the character.
this UnassignItem "NVGoggles"; this RemoveItem "NVGoggles";
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.