magazinesAmmoFull: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.74|= Game version ____________________...") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
3: Magazine type (-1 - n/a, 0 - grenade, 1 - primary mag, 2 - handgun mag, 4 - secondary weapon mag, 65536 - vehicle mag) | 3: Magazine type (-1 - n/a, 0 - grenade, 1 - primary mag, 2 - handgun mag, 4 - secondary weapon mag, 65536 - vehicle mag) | ||
4: Magazine location ("Vest", "Uniform", "Backpack", "") or corresponding [[currentMuzzle]] | 4: Magazine location ("Vest", "Uniform", "Backpack", "") or corresponding [[currentMuzzle]] |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 34: | Line 32: | ||
|p1= vehicle: [[Object]] - unit or vehicle. |= PARAMETER1 | |p1= vehicle: [[Object]] - unit or vehicle. |= PARAMETER1 | ||
| [[Array]] |= RETURNVALUE | | [[Array]] |= RETURNVALUE | ||
|x1=<code>_magazinesAmmoFull = [[magazinesAmmoFull]] [[player]]; | |x1=<code>_magazinesAmmoFull = [[magazinesAmmoFull]] [[player]]; | ||
/* | /* | ||
Line 49: | Line 47: | ||
] | ] | ||
<nowiki>*/</nowiki></code>|= EXAMPLE1 | <nowiki>*/</nowiki></code>|= EXAMPLE1 | ||
|x2=<code>_magazinesAmmoFull = [[magazinesAmmoFull]] Mi_48; | |x2=<code>_magazinesAmmoFull = [[magazinesAmmoFull]] Mi_48; | ||
/* | /* |
Revision as of 11:53, 5 August 2013
Description
- Description:
- Returns array of arrays of all vehicle's magazines with extended information about them. Output format: [[magazine1],[magazine2],[magazine3]...[magazineN]] Magazine format: 0: Magazine class name 1: Current ammo count 2: Magazine state (true - loaded, false - not loaded) 3: Magazine type (-1 - n/a, 0 - grenade, 1 - primary mag, 2 - handgun mag, 4 - secondary weapon mag, 65536 - vehicle mag) 4: Magazine location ("Vest", "Uniform", "Backpack", "") or corresponding currentMuzzle
- Groups:
- Uncategorised
Syntax
- Syntax:
- magazinesAmmoFull vehicle
- Parameters:
- vehicle: Object - unit or vehicle.
- Return Value:
- Array
Examples
- Example 1:
_magazinesAmmoFull = magazinesAmmoFull player; /* [ ["30Rnd_65x39_caseless_mag",30,false,-1,"Uniform"], ["30Rnd_65x39_caseless_mag",30,false,-1,"Vest"], ["16Rnd_9x21_Mag",16,false,-1,"Vest"], ["SmokeShellGreen",1,true,0,"SmokeShellGreenMuzzle"], ["Chemlight_green",1,true,0,"ChemlightGreenMuzzle"], ["HandGrenade",1,true,0,"HandGrenadeMuzzle"], ["30Rnd_65x39_caseless_mag",30,true,1,"arifle_MX_ACO_pointer_F"], ["16Rnd_9x21_Mag",16,true,2,"hgun_P07_F"] ] */
- Example 2:
_magazinesAmmoFull = magazinesAmmoFull Mi_48; /* [ ["250Rnd_30mm_APDS_shells",250,false,-1,""], ["250Rnd_30mm_HE_shells",250,true,65536,"gatling_30mm"], ["8Rnd_LG_scalpel",8,true,65536,"missiles_SCALPEL"], ["38Rnd_80mm_rockets",38,true,65536,"rockets_Skyfire"] ] */
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