Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
hasWeapon - OFPEC Scripting Command Reference | OFPEC The Editing Center

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"

Advertisement