Page MenuHomeFeedback Tracker

[Feature Request] Add the magazine info to primaryWeaponItems (and its siblings, such as handgunItems)
New, NormalPublic

Description

It would be great to include the loaded magazine info (including other muzzles) in the "primaryWeaponItems" command's returned value. Since we can use "removePrimaryWeaponItem" to remove its magazine as well.

The command "primaryWeaponMagazine" results are confusing for weapons with more than one muzzle.
E.g. if a weapon with an under-barrel launcher doesn't have a loaded magazine, the returned value is ["1Rnd_HE_Grenade_shell"], instead of ["","1Rnd_HE_Grenade_shell"].

Currently the only alternative is to use (getUnitLoadOut _unit select _weaponSlot). But primaryWeaponItems is much faster (~10x).

What current primaryWeaponItems returns:

[
"arifle_SPAR_01_GL_blk_F",
"muzzle_snds_M",
"acc_pointer_IR",
"optic_Holosight_smg_blk_F",
""
]

What requested primaryWeaponItems will return:

[
"arifle_SPAR_01_GL_blk_F",
"muzzle_snds_M",
"acc_pointer_IR",
"optic_Holosight_smg_blk_F",
"",
["30Rnd_556x45_Stanag_red",30],
["1Rnd_HE_Grenade_shell",1]
]

Details

Severity
Tweak
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)Jun 28 2020, 7:20 PM
Leopard20 updated the task description. (Show Details)Jun 28 2020, 7:28 PM