Page MenuHomeFeedback Tracker

Unable to determine the count of cargo weapons with attachments
New, NormalPublic

Description

I have 3 weapons in a crate, two with bipods, one without.

If I do getWeaponCargo I get [["arifle_MX_SW_pointer_F"],[3]]

If I do weaponsItemsCargo I get

[
  ["arifle_MX_SW_pointer_F","","","",[],[],"bipod_01_F_snd"],
  ["arifle_MX_SW_pointer_F","","","",[],[],""]
]

There is no way to determine the count of weapons while still being distinct on attachments.

This could be fixed with an alternative syntax for weaponsItemsCargo, for example:

weaponItemsCargo [container, includeCounts], includeCounts is false by default for backwards compatibility, but when set to true it would return

[
  [["arifle_MX_SW_pointer_F","","","",[],[],"bipod_01_F_snd"], 2],
  [["arifle_MX_SW_pointer_F","","","",[],[],""], 1]
]

Details

Severity
Minor
Resolution
Open
Reproducibility
Unable To Reproduce
Operating System
Windows 10 x64
Category
Inventory
Additional Information

nevermind I am blind please close

Event Timeline

brett created this task.Jul 14 2021, 10:47 PM
brett updated the task description. (Show Details)Jul 14 2021, 11:58 PM
brett changed Reproducibility from Always to Unable To Reproduce.Jul 15 2021, 12:07 AM
brett edited Additional Information. (Show Details)