primaryWeaponItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 29: Line 29:
| [[addPrimaryWeaponItem]], [[removePrimaryWeaponItem]], [[removeAllPrimaryWeaponItems]], [[weaponAccessories]], [[weaponAccessoriesCargo]], [[handgunItems]], [[binocularItems]], [[secondaryWeaponItems]], [[weaponsItems]], [[weaponsItemsCargo]]
| [[addPrimaryWeaponItem]], [[removePrimaryWeaponItem]], [[removeAllPrimaryWeaponItems]], [[weaponAccessories]], [[weaponAccessoriesCargo]], [[handgunItems]], [[binocularItems]], [[secondaryWeaponItems]], [[weaponsItems]], [[weaponsItemsCargo]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:02, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns array with all items assigned to the primaryWeapon except magazines. Use primaryWeaponMagazine command for the latter. This command is used for infantry weapons only.
Groups:
Unit Inventory

Syntax

Syntax:
primaryWeaponItems unit
Parameters:
unit: Object
Return Value:
Array - [silencer, laserpointer/flashlight, optics, bipod]

Examples

Example 1:
primaryWeaponItems player; /* [ "muzzle_snds_H", //silencer "acc_pointer_IR", //laser "optic_Aco", //optics "bipod_01_F_blk" //bipod ] */

Additional Information

See also:
addPrimaryWeaponItemremovePrimaryWeaponItemremoveAllPrimaryWeaponItemsweaponAccessoriesweaponAccessoriesCargohandgunItemsbinocularItemssecondaryWeaponItemsweaponsItemsweaponsItemsCargo

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
Posted on March 16, 2015 - 12:04 (UTC)
Jezuro
Since revision 129742, this command also returns an attached bipod.