magazinesAmmo: Difference between revisions
Jump to navigation
Jump to search
(Version fixed - shouldn't be present in version 0.74.) |
Killzone Kid (talk | contribs) (see also / fprmatting) |
||
Line 9: | Line 9: | ||
| Returns array of arrays of all vehicle's magazines and their ammo count. When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons. Use [[magazinesAmmoFull]] to return all magazines. | | Returns array of arrays of all vehicle's magazines and their ammo count. When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons. Use [[magazinesAmmoFull]] to return all magazines. | ||
'''Output format''': | <br><br>'''Output format''': | ||
[[magazine1],[magazine2],[magazine3]...[magazineN]] | <br>[[magazine1],[magazine2],[magazine3]...[magazineN]] | ||
<br><br>'''Magazine format''': | |||
<br>0: Magazine class name | |||
<br>1: Magazine current ammo count |= Description | |||
1: Magazine current ammo count |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 50: | Line 49: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[magazinesAmmoFull]], [[magazinesDetail]], [[magazines]], [[magazinesTurret]] |= SEEALSO | | [[magazinesAmmoFull]], [[magazinesAmmoCargo]], [[magazinesDetail]], [[magazines]], [[magazinesTurret]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 20:15, 14 June 2014
Description
- Description:
- Returns array of arrays of all vehicle's magazines and their ammo count. When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons. Use magazinesAmmoFull to return all magazines.
Output format:
[[magazine1],[magazine2],[magazine3]...[magazineN]]
Magazine format:
0: Magazine class name
1: Magazine current ammo count - Groups:
- Uncategorised
Syntax
- Syntax:
- magazinesAmmo vehicle
- Parameters:
- vehicle: Object - unit or vehicle.
- Return Value:
- Array
Examples
- Example 1:
_magazinesAmmo = magazinesAmmo player; /* [ ["30Rnd_65x39_caseless_mag",30], ["30Rnd_65x39_caseless_mag",30], ["16Rnd_9x21_Mag",16], ["SmokeShellGreen",1], ["Chemlight_green",1], ["HandGrenade",1] ] */
- Example 2:
_magazinesAmmo = magazinesAmmo Mi_48; /* [ ["250Rnd_30mm_APDS_shells",250], ["250Rnd_30mm_HE_shells",250], ["8Rnd_LG_scalpel",8], ["38Rnd_80mm_rockets",38] ] */
Additional Information
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