magazinesAmmo don't show magazines with 0 ammo count. You can get this info with soldiermagazines but in text format.
I want to make a repack possibility for magazines but cannot because of this issue.
Description
Description
Details
Details
- Legacy ID
- 2049044757
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Take any weapon and several magazines for it.
- Reload it and run
player addMagazine [(primaryWeaponMagazine player) select 0, 0];
in debug window.
- Check magazines count with
hint str (magazinesAmmo player);
Magazines with zero ammo count will be ignored.
Check ammo with
hint str(soldiermagazines player);
You will see magazines with zero ammo count.
So you cannot check if unit has any empty magazines and cannot get classnames.
Event Timeline
Comment Actions
I see that someone downvoted the ticket. Just want to know the reason.
Btw, have updated the steps to reproduce.