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

unit addMagazine magazineName

Operand types

unit: Object
magazineName: String

Type of returned value

Description

Add magazine to unit.
Note: You can create invalid combinations with this function like 20 grenades.
When doing so, application behaviour is undefined.

Used In

OFP/ArmA

Example

player addMagazine "M16"

Advertisement