unitName hasWeapon weaponName

Operand types

unitName: Object
weaponName: String

Type of returned value

Description

Checks whether the unit has the given weapon.

Used In

OFP/ArmA

Example

_armed = player hasWeapon "M16"
Search OFPEC COMREF