getUnitLoadout stacking weapons with different ammo in one array and use ammo of first added weapon
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Operating System Version
- 1803
- Category
- Scripting
Steps To Reproduce
- Add two or more weapons with different ammo:
player setUnitLoadout [[],[],["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],1]]],"","",[],["","","","","",""]];
- Stack two weapons (In backpack)
- Use getUnitLoadout:
[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],2]]],"","",[],["","","","","",""]];
or
[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],2]]],"","",[],["","","","","",""]];
Event Timeline
Comment Actions
Hello,
this issue is still persists.
Steps to reproduce:
Put two identical weapons in a container (backpack). -> For example: 2x "hgun_Pistol_heavy_01_green_F"
A weapon with a full magazine and a weapon with a magazine in there rounds are missing.
The output from the command is this:
[["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",11],[],""],2]
instead of
[["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",11],[],""],1], [["hgun_Pistol_heavy_01_green_F","","","",["11Rnd_45ACP_Mag",7],[],""],1]
Comment Actions
I'm assigning this to myself in order not to lose it, and I'm aware of the issue but the fix might be too complicated or unsafe. I will have another look but no guarantees