Page MenuHomeFeedback Tracker

Implement setMagazineAmmo to make removing ammo from mags easier.
Acknowledged, WishlistPublic

Description

What setMagazineAmmo would do:

The purpose of the command would be to remove ammo from a specified magazine class in the players inventory, examples of usage or syntax could be the following

primary/default syntax:
<object/unit> setMagazineAmmo [<classname of magazine>, <amount of ammo to set>];

This above example would set the specified amount of ammo on a specified magazine class from the players inventory, it will default default behaviour would be setting only one of the magazines found in the players inventory, if amount to set exceeds what the magazine can contain/has left in it the command will fall-back to setting the magazine to full or empty accordingly.

optional syntax:
<object/unit> setMagazineAmmo [<classname of magazine>, <amount of ammo to set>, <whether to remove the magazine if its empty or not>];

Details

Legacy ID
808415575
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request
Additional Information

There is no command to remove magazine ammo from players inventories only add a new magazine with a specific count, this would be beneficial to mission/mod makers as the only way to remove or add ammo from/to a specific magazine class is to do a loop through all magazine classes of the player, remove the specified magazine once reached and then re-add it with the desired ammo count.

Event Timeline

KamikazeXeX edited Additional Information. (Show Details)Aug 14 2015, 1:46 AM
KamikazeXeX set Category to Feature Request.
KamikazeXeX set Reproducibility to N/A.
KamikazeXeX set Severity to None.
KamikazeXeX set Resolution to Open.
KamikazeXeX set Legacy ID to 808415575.May 8 2016, 12:31 PM

this would be cool