addMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3
|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=


|eff= global |Multiplayer Effects=
|eff= global |Multiplayer Effects=


|0.50|Game version=
|0.50


|gr1= Unit Inventory |GROUP1=
|gr1= Unit Inventory


| Adds multiple magazines to the unit. For cargo containers use [[addMagazineCargoGlobal]] command.   |DESCRIPTION=
| Adds multiple magazines to the unit. For cargo containers use [[addMagazineCargoGlobal]] command.


| unit '''addMagazines''' [magazineName, count] |SYNTAX=
| unit '''addMagazines''' [magazineName, count]


|p1= unit: [[Object]] - a soldier |PARAMETER1=
|p1= unit: [[Object]] - a soldier


|p2= [magazineName, count]: [[Array]] |PARAMETER2=
|p2= [magazineName, count]: [[Array]]


|p3= magazineName: [[String]] |PARAMETER3=
|p3= magazineName: [[String]]


|p4= count: [[Number]] - Number of magazines. |PARAMETER4=
|p4= count: [[Number]] - Number of magazines.


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|x1= <code>[[player]] [[addMagazines]] ["30Rnd_65x39_caseless_mag", 3];</code>|EXAMPLE1=
|x1= <code>[[player]] [[addMagazines]] ["30Rnd_65x39_caseless_mag", 3];</code>




| [[addMagazineGlobal]], [[addMagazine]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]], [[addMagazineAmmoCargo]] |SEEALSO=
| [[addMagazineGlobal]], [[addMagazine]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]], [[addMagazineAmmoCargo]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 00:04, 18 January 2021

Hover & click on the images for description

Description

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

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

See also:
addMagazineGlobaladdMagazineaddMagazineCargoaddMagazineCargoGlobaladdMagazinePooladdMagazineTurretaddMagazineAmmoCargo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section