Arma 3 Scripting

Command in Vehicle Inventory

setAmmoCargo

Also available as Markdown and JSON, or read the original wiki page.

Description

Set amount of ammo resources in cargo space of a rearm vehicle. Ammo resource is used to resupply vehicles that take ammo. Soldiers use individual magazines instead.

The actual quantity to work with is determined by the model's class in CfgVehicles

Syntax

vehicleName setAmmoCargo ammoCargo

Parameters:

Returns: Nothing

Examples

Example 1

_ammoTruck1 setAmmoCargo 0.5;

See also

getAmmoCargo · setFuelCargo · setRepairCargo