magazinesAmmoCargo: Difference between revisions
m (Replaced <code> with <sqf>) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 12: | Line 12: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] of [[Array]]s with [class, ammo] | ||
* name: [[String]] - Class name of the magazine | |||
* ammo: [[Number]] - Number of rounds loaded | |||
|x1= <sqf>magazinesAmmoCargo vehicle player;</sqf> | |x1= <sqf>magazinesAmmoCargo vehicle player;</sqf> | ||
Latest revision as of 12:35, 1 January 2026
Description
- Description:
- Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- magazinesAmmoCargo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array of Arrays with [class, ammo]
Examples
- Example 1:
- Example 2:
- // returns: [ ["30Rnd_65x39_caseless_mag",30], ["30Rnd_65x39_caseless_mag",30], ["Chemlight_green",1] ]
Additional Information
- See also:
- magazinesAmmo magazinesAmmoFull
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note