It adds goggles just fine with linkItem but when you try to remove the added goggles with unlinkItem it shows config error
No entry config.bin/CfgWeapons.GOGGLESNAME
It adds goggles just fine with linkItem but when you try to remove the added goggles with unlinkItem it shows config error
No entry config.bin/CfgWeapons.GOGGLESNAME
player linkItem "G_Diving";
works fine
player unlinkItem "G_Diving";
config error ^^^^
Confirmed.
the alternative command to put the item in the inventory does not work either:
player unassignItem "G_Diving"; // same error as in OP
For the time being one can removeGoggles to get similar effect (this won't put the goggles back in inventory though as would unassignItem)
Just a reminder to Mr. japapatramtara who kindly promised to fix this in another thread :)
Well, he knows best I guess:
About [unlinkItem] - ok, will add support to unlink even goggles and headgear.