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