getAmmoCargo
Jump to navigation
Jump to search
Description
- Description:
- Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- getAmmoCargo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Number - ammo cargo value between 0 (empty, destroyed or null Object) and 1 (full), -1 if ammo cargo is not supported
before1.96 -inf was be returned if vehicle did not support ammo cargo
before1.94 Nothing was be returned if vehicle was not alive
Examples
- Example 1:
Additional Information
- See also:
- setAmmoCargo getFuelCargo getRepairCargo
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note