<p>ace_rearm_caliber is only needed if you aren't inheriting from any of BI base classes or if your ammo has a different caliber.</p>
<p>ace_rearm_dummy is only needed if you have a custom ammunition model. For each model you should create a dummy vehicle extending ace_rearm_defaultCarriedObject.</p>
2 | Only add content of one ammo box | Boolean | Optional (default: `false`)
**R** | None | None | Return value
This function is most useful with the module setting `Only specific Magazines`. Note that this function only adds one magazine of a specific class. Other magazines of the same size are not available on this module setting. It has to be used to replenish the ammo truck on `Only specific Magazines` setting.
This function can also be used to increase the supply count on setting `Limited ammo supply based on caliber` by a certain caliber value.
1 | `"32Rnd_155mm_Mo_shells"` | Some magazine class
The 32 artillery shells are added to the supply count or the magazine storage of the specified ammo truck.
### 2.2 Adding all magazines of a specific vehicle
`ace_rearm_fnc_addVehicleMagazinesToSupply`
| Arguments | Type | Optional (default value)
---| --------- | ---- | ------------------------
0 | Ammo Truck | Object | Required
1 | Any vehicle object or class name | Object or String | Required
**R** | None | None | Return value
This functions wraps `ace_rearm_fnc_addMagazineToSupply` and uses it to add all default magazines of all supported turrets of the vehicle to the ammo truck.
1 | `"500Rnd_127x99_mag_Tracer_Red"`| Carrying is enabled
Removes one ammo box worth of 500Rnd_127x99_mag_Tracer_Red from the supply. Depending on the module setting the ammo box does hold an entire magazine or only the caliber based amount of rounds.
1 | `"500Rnd_127x99_mag_Tracer_Red"`| Carrying is enabled
2 | `50` | Number of rounds
Removes one ammo box with 50 rounds of 500Rnd_127x99_mag_Tracer_Red from the supply. This is 10% of the supply of an entire magazine.
### 2.6 Setting the supply count
`ace_rearm_fnc_setSupplyCount`
| Arguments | Type | Optional (default value)
---| --------- | ---- | ------------------------
0 | Ammo Truck | Object | Required
1 | Supply Count | Boolean | Required
**R** | None | None | Return value
This function sets the current supply count of the ammo truck. It can be used to replenish the ammo truck on `Limited ammo supply based on caliber` setting.