Page MenuHomeFeedback Tracker

magazinesAmmo is broken
New, WishlistPublic

Description

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.

Details

Legacy ID
2049044757
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Take any weapon and several magazines for it.
  2. Reload it and run

player addMagazine [(primaryWeaponMagazine player) select 0, 0];

in debug window.

  1. 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

ruPaladin set Category to Scripting.
ruPaladin set Reproducibility to Always.
ruPaladin set Severity to None.
ruPaladin set Resolution to Open.
ruPaladin set Legacy ID to 2049044757.May 8 2016, 12:44 PM
ruPaladin added a subscriber: ruPaladin.

I see that someone downvoted the ticket. Just want to know the reason.

Btw, have updated the steps to reproduce.