weaponState unitName

Operand types

unitName: Object

Type of returned value

Description

Returns the current weapon state as an array of strings in the following format [WeaponName, MuzzleName, ModeName, MagazineName, AmmoCount] (AmmoCount is Number).

Used In

Arma2OA

Example

_weaponStatePlayer = weaponState player;
Search OFPEC COMREF