unitName addWeapon weaponName

Operand types

unitName: Object
weaponName: String

Type of returned value

Description

Add weapon to unit.
Note: You can create invalid combinations with this function, for example by adding two rifles.
When doing so, application behaviour is undefined.

Used In

OFP/ArmA

Example

player addWeapon "AK74"