removeWeaponItem

From Bohemia Interactive Community
Revision as of 19:37, 6 September 2025 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Removes magazine from the specified muzzle. It is possible to remove magazine directly from 'Throw' muzzle provided it is configured with keepInInventory = 0;.
To add such magazine, see addWeaponItem.
Groups:
Unit Inventory

Syntax

Syntax:
unit removeWeaponItem [muzzle, magazine]
Parameters:
unit: Object
muzzle: String - name of the muzzle to add magazine to
magazine: String - class name of the magazine to remove
Return Value:
Nothing

Examples

Example 1:
player removeWeaponItem ["arifle_MX_GL_ACO_F", "1Rnd_HE_Grenade_shell"];

Additional Information

See also:
addWeaponItem addPrimaryWeaponItem addSecondaryWeaponItem addHandgunItem addBinocularItem weaponsItems handgunItems primaryWeaponItems secondaryWeaponItems binocularItems removePrimaryWeaponItem removeSecondaryWeaponItem removeHandgunItem removeBinocularItem

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