Description
Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.
Syntax
getAmmoCargo vehicle
Parameters:
vehicle: Object
Returns: Number - ammo cargo value between 0 (empty, destroyed or null Object) and 1 (full), -1 if ammo cargo is not supported
before Arma 3 v1.96 -inf was be returned if vehicle did not support ammo cargo
before Arma 3 v1.94 Nothing was be returned if vehicle was not alive
Examples
Example 1
value = getAmmoCargo myVehicleName;