getAmmoCargo

From Bohemia Interactive Community
Revision as of 01:20, 18 February 2025 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Hover & click on the images for description

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
before Arma 3 logo black.png1.96 -inf was be returned if vehicle did not support ammo cargo
before Arma 3 logo black.png1.94 Nothing was be returned if vehicle was not alive

Examples

Example 1:
Copy
value = getAmmoCargo myVehicleName;

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