weaponsItems: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.76|= Game version ____________________...") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
| '''weaponsItems''' vehicle |= Syntax | | '''weaponsItems''' vehicle |= Syntax | ||
|p1= vehicle: [[Object]] |= Parameter 1 | |p1= vehicle: [[Object]] - unit or vehicle |= Parameter 1 | ||
| [[Array]] | | [[Array]] |= RETURNVALUE | ||
|x1= <code></code>|= EXAMPLE1 | |x1= [[Image:Weaponsitems.jpg|200px|right|border]]<code>[[hint]] [[str]] [[weaponsItems]] [[player]]; | ||
/* | |||
[ | |||
[ //=PRIMARY= | |||
"arifle_MX_ACO_pointer_F", //weapon | |||
"muzzle_snds_H", //suppressor | |||
"acc_pointer_IR", //laser | |||
"optic_Aco", //optics | |||
[ //loaded magazine | |||
"30Rnd_65x39_caseless_mag", //mag type | |||
30 //mag ammo count | |||
] | |||
],[ //=SECONDARY= | |||
"launch_NLAW_F", | |||
"", | |||
"", | |||
"", | |||
[ | |||
"NLAW_F", | |||
1 | |||
] | |||
],[ //=HANDGUN= | |||
"hgun_P07_F", | |||
"muzzle_snds_L", | |||
"", | |||
"", | |||
[ | |||
"16Rnd_9x21_Mag", | |||
11 | |||
] | |||
] | |||
] | |||
<nowiki>*/</nowiki></code>|= EXAMPLE1 | |||
|x2= <code>[[hint]] [[str]] [[weaponsItems]] [[vehicle]] [[player]]; | |||
/* | |||
[ | |||
[ | |||
"gatling_30mm", | |||
"", | |||
"", | |||
"", | |||
[ | |||
"250Rnd_30mm_HE_shells", | |||
250 | |||
] | |||
],[ | |||
"missiles_SCALPEL", | |||
"", | |||
"", | |||
"", | |||
[ | |||
"8Rnd_LG_scalpel", | |||
8 | |||
] | |||
],[ | |||
"rockets_Skyfire", | |||
"", | |||
"", | |||
"", | |||
[ | |||
"38Rnd_80mm_rockets", | |||
38 | |||
] | |||
] | |||
] | |||
<nowiki>*/</nowiki></code> | |||
|= EXAMPLE2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[primaryWeapon]], [[secondaryWeapon]], [[handgunWeapon]], [[addPrimaryWeaponItem]], [[addSecondaryWeaponItem]], [[addHandgunItem]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 15:06, 10 August 2013
Description
- Description:
- Returns an array with subarrays contains class names and also names of connected items of all the vehicle's weapons.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
hint str weaponsItems player;
/* [ [ //=PRIMARY= "arifle_MX_ACO_pointer_F", //weapon "muzzle_snds_H", //suppressor "acc_pointer_IR", //laser "optic_Aco", //optics [ //loaded magazine "30Rnd_65x39_caseless_mag", //mag type 30 //mag ammo count ] ],[ //=SECONDARY= "launch_NLAW_F", "", "", "", [ "NLAW_F", 1 ] ],[ //=HANDGUN= "hgun_P07_F", "muzzle_snds_L", "", "", [ "16Rnd_9x21_Mag", 11 ] ] ]
*/- Example 2:
hint str weaponsItems vehicle player; /* [ [ "gatling_30mm", "", "", "", [ "250Rnd_30mm_HE_shells", 250 ] ],[ "missiles_SCALPEL", "", "", "", [ "8Rnd_LG_scalpel", 8 ] ],[ "rockets_Skyfire", "", "", "", [ "38Rnd_80mm_rockets", 38 ] ] ] */
Additional Information
- See also:
- primaryWeaponsecondaryWeaponhandgunWeaponaddPrimaryWeaponItemaddSecondaryWeaponItemaddHandgunItem
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