addMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 106281 by Lou Montana on 2018-03-25T20:09:30Z)
m (template:command argument fix)
Line 15: Line 15:
| unit '''addMagazines''' [magazineName, count] |= Syntax
| unit '''addMagazines''' [magazineName, count] |= Syntax


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


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


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


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


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




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


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:28, 7 April 2019

Hover & click on the images for description

Description

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

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