addPrimaryWeaponItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(category added)
No edit summary
Line 42: Line 42:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on June 22, 2014 - 23:08 (UTC)</dd>
<dt class="note">'''[[User:SilentSpike|SilentSpike]]'''</dt>
<dd class="note">
If the item being added is not supported by the unit's weapon then the command will simply fail silently. The item is also '''not''' added to the unit's inventory in such a case.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 00:08, 23 June 2014

Hover & click on the images for description

Description

Description:
Adds item to the weapon cargo space. This is used for infantry weapons.
Groups:
Uncategorised

Syntax

Syntax:
unit addPrimaryWeaponItem item
Parameters:
unit: Object
item: String
Return Value:
Nothing

Examples

Example 1:
player addPrimaryWeaponItem "muzzle_snds_H";

Additional Information

See also:
addSecondaryWeaponItemaddHandgunItemweaponsItemshandgunItemsprimaryWeaponItemssecondaryWeaponItems

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

Notes

Bottom Section

Posted on June 22, 2014 - 23:08 (UTC)
SilentSpike
If the item being added is not supported by the unit's weapon then the command will simply fail silently. The item is also not added to the unit's inventory in such a case.