addMagazines

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
Adds multiple magazines to the unit. For cargo containers use addMagazineCargoGlobal command.

Syntax

Syntax:
unit addMagazines [magazineName, count]
Parameters:
unit: Object - a soldier
[magazineName, count]: Array
magazineName: String
count: Number - Number of magazines.
Return Value:
Nothing

Examples

Example 1:
player addMagazines ["30Rnd_65x39_caseless_mag", 3];

Additional Information

Multiplayer:
-
See also:
addMagazineGlobaladdMagazineaddMagazine_arrayaddMagazineCargoaddMagazineCargoGlobaladdMagazinePooladdMagazineTurretaddMagazineAmmoCargo

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section