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

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"

Advertisement