Page MenuHomeFeedback Tracker

Weapons stack in getUnitLoadout
New, NormalPublic

Description

getUnitLoadout stacking weapons with different ammo in one array and use ammo of first added weapon

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1803
Category
Scripting
Steps To Reproduce
  1. Add two or more weapons with different ammo:
player setUnitLoadout [[],[],["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],1]]],"","",[],["","","","","",""]];
  1. Stack two weapons (In backpack)
  2. Use getUnitLoadout:
[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",[],[],""],2]]],"","",[],["","","","","",""]];

or

[[],[],[],[],[],["B_Carryall_ocamo",[[["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],2]]],"","",[],["","","","","",""]];

Event Timeline

Dimonua added a subscriber: Dimonua.Sep 8 2018, 2:21 AM
Wulf added a subscriber: Wulf.Sep 20 2018, 12:57 PM

Hello.

Does this issue still occur as I am not able to reproduce it.