Arma 3 Scripting

handgunItems

  • Global argument
  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Returns array with all items assigned to the handgunWeapon except magazines. Use handgunMagazine command for the latter. This command is used for infantry weapons only.

Syntax

handgunItems unit

Parameters:

Returns: Array - [silencer, laserpointer/flashlight, optics, bipod]

Examples

Example 1

handgunItems player;
/*
[
    "muzzle_snds_L",    // silencer
    "",                    // laser
    "",                    // optics
    ""                    // bipod
]
*/

See also

addHandgunItem · removeHandgunItem · removeAllHandgunItems · weaponAccessories · weaponAccessoriesCargo · primaryWeaponItems · secondaryWeaponItems · weaponsItems · binocularItems · weaponsItemsCargo