magazinesAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
m (Replaced <code> with <sqf>) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
|descr=Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. | |descr=Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. | ||
|s1= | |s1= [[magazinesAmmoCargo]] vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1=[[Array]] | |r1= [[Array]] | ||
|x1= < | |x1= <sqf>magazinesAmmoCargo vehicle player;</sqf> | ||
|x2= < | |x2= <sqf>magazinesAmmoCargo uniformContainer player;</sqf> | ||
< | <sqf> | ||
// returns: | |||
[ | |||
["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]] | |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