addMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|arg= global |Multiplayer Arguments= | |arg= global |Multiplayer Arguments= | ||
|eff= global |Multiplayer Effects= | |eff= global |Multiplayer Effects= | ||
|0.50 | |0.50 | ||
|gr1= Unit Inventory | |gr1= Unit Inventory | ||
| Adds multiple magazines to the unit. For cargo containers use [[addMagazineCargoGlobal]] command. | | Adds multiple magazines to the unit. For cargo containers use [[addMagazineCargoGlobal]] command. | ||
| unit '''addMagazines''' [magazineName, count] | | unit '''addMagazines''' [magazineName, count] | ||
|p1= unit: [[Object]] - a soldier | |p1= unit: [[Object]] - a soldier | ||
|p2= [magazineName, count]: [[Array]] | |p2= [magazineName, count]: [[Array]] | ||
|p3= magazineName: [[String]] | |p3= magazineName: [[String]] | ||
|p4= count: [[Number]] - Number of magazines. | |p4= count: [[Number]] - Number of magazines. | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[addMagazines]] ["30Rnd_65x39_caseless_mag", 3];</code> | |x1= <code>[[player]] [[addMagazines]] ["30Rnd_65x39_caseless_mag", 3];</code> | ||
| [[addMagazineGlobal]], [[addMagazine]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]], [[addMagazineAmmoCargo]] | | [[addMagazineGlobal]], [[addMagazine]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]], [[addMagazineAmmoCargo]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:04, 18 January 2021
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