• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /General
  • /A3G-75
Back
2

Add a force param to setAmmo to allow magazines to be overfilled

Feature Request
2

State

Open
Issue key
A3G-75
Access
Public
Space
Arma 3
Project
General
Creator
drofseh
Created
Sep 11, 2026
Views
37
Issue Type
Feature Request
Severity
It would be nice to fix this
Description

ACE3 has a system for linking machine gun belts where an assistant can interact with a gunner to top up the gunner's current magazine which uses setAmmo to increase the amount of ammunition in the magazine, allow the machine gun to keep firing without needing to reload.


unit setAmmo [weaponOrMuzzle, count]

If setAmmo 's count param is higher than the config count of the magazine the amount of ammunition added to the magazine is clamped to the config count

Because the magazine is only topped up to the amount it originally had there has been a lot of confusion over the years by players expecting the ammuntion now in the weapon to be the sum of the old remaining belt and the new linked belt.

If setAmmo had a an additional param to force the value of the count param then this ACE feature could function more like players expect it to.
unit setAmmo [weaponOrMuzzle, count, force]
player setAmmo [currentWeapon player, 400, true]

Reactions

Activity

    8 days ago
  • drofseh
    created issue8 days ago
  • 4 days ago
  • dedmen
    Moderator
    4 days ago
    dedmen
    Moderator
    4 days ago

    Lots of code depends on a magazine having less or equal to capacity rounds in it.
    There seems to be too much code to be checked and fixed manually to respect this, to be worth it.
    Not to mention how many mods/scripts expect "ammo" command to return a maximum value of 1.

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
A3G-75
Access
Public
Space
Arma 3
Project
General
Creator
drofseh
Created
Sep 11, 2026
Views
37