Arma 3 Scripting

Command in Unit Inventory

removeWeaponItem

Also available as Markdown and JSON, or read the original wiki page.

Description

Removes magazine from the specified muzzle. It is possible to remove magazine directly from 'Throw' muzzle provided it is configured with keepInInventory = 0;.

Note

To add such magazine, see addWeaponItem.

Syntax

unit removeWeaponItem [muzzle, magazine]

Parameters:

Returns: Nothing

Examples

Example 1

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

See also

addWeaponItem · addPrimaryWeaponItem · addSecondaryWeaponItem · addHandgunItem · addBinocularItem · weaponsItems · handgunItems · primaryWeaponItems · secondaryWeaponItems · binocularItems · removePrimaryWeaponItem · removeSecondaryWeaponItem · removeHandgunItem · removeBinocularItem