Warning: file_put_contents(/ff_84d1c2752389eb7cb8e3f1ca8557e4fa7c4957b125f4ce50.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