Arma 3 Scripting

removeWeaponItem

  • Local argument
  • Global effect
  • Arma 3 v2.22

Command · Markdown · JSON · 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