As introduced in v2.14 with addWeaponCargoGlobal (and several similar for magazines), please allow addWeaponWithAttachmentsCargo and addWeaponWithAttachmentsCargoGlobal to use a negative weaponsCount parameter in order to remove one specific player-configured weapon from a container.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Inventory
Additional Information
I'm transferring items from one container to the other.
At the moment, in order to make this work, I'll have to remember the source container's full inventory, clear it fully and then reconstruct it without that specific player chosen weapon that's been "transferred".
While that seems like a valid way to simulate the "missing" feature, its apparent weakness is witnessed, when the "transferred from" container is the player's backpack. The player sees it emptying and then gradually filling back up. Also, in MP, I'd have to make several calls to an add*Global function that obviously propagates to the clients instead of maybe only one if this feature request saw development.