addMagazineGlobal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.76
  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.76

Description

Description:
Adds a magazine to the unit. Note: You may create invalid combinations by adding more magazines than the free space in unit's inventory allows. When doing so, application behaviour is undefined.
warning.png This command is broken in MP as it dupes inventory items. Use addMagazine <array> for now, it takes global argument and has global effect too.

Syntax

Syntax:
unit addMagazineGlobal magazineName
Parameters:
unit: Object
magazineName: String
Return Value:
Nothing

Examples

Example 1:
player addMagazineGlobal "30Rnd_65x39_caseless_mag";

Additional Information

Multiplayer:
-
See also:
addMagazineaddMagazine_arrayaddMagazinesaddMagazineCargoaddMagazineCargoGlobaladdMagazinePooladdMagazineTurretaddMagazineAmmoCargo

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