Arma 3 Scripting

Command in Unit Inventory

handgunWeapon

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

Description

Returns the name of a unit's handgun (an empty string if there is none).

Syntax

handgunWeapon unit

Parameters:

Returns: String

Examples

Example 1

hint handgunWeapon player; //"hgun_P07_F"

See also

handgunMagazine · handgunItems · addHandgunItem · removeHandgunItem · removeAllHandgunItems · primaryWeapon · secondaryWeapon · currentWeapon · weapons