magazinesAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (Replaced <code> with <sqf>) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.22 | |||
| | |gr1= Vehicle Inventory | ||
|descr=Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. | |||
| | |s1= [[magazinesAmmoCargo]] vehicle | ||
| | |p1= vehicle: [[Object]] | ||
| | |r1= [[Array]] | ||
|x1= <sqf>magazinesAmmoCargo vehicle player;</sqf> | |||
|x2= <sqf>magazinesAmmoCargo uniformContainer player;</sqf> | |||
<sqf> | |||
|x1= < | // returns: | ||
|x2= < | [ | ||
< | |||
["30Rnd_65x39_caseless_mag",30], | ["30Rnd_65x39_caseless_mag",30], | ||
["30Rnd_65x39_caseless_mag",30], | ["30Rnd_65x39_caseless_mag",30], | ||
["Chemlight_green",1] | ["Chemlight_green",1] | ||
]</ | ] | ||
</sqf> | |||
|seealso= [[magazinesAmmo]] [[magazinesAmmoFull]] | |||
}} | }} | ||
Latest revision as of 15:08, 14 May 2022
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
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 or on the Forums.
Only post proven facts here! Add Note