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