addMagazine array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Redirection to addMagazine)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
#REDIRECT [[addMagazine]]
____________________________________________________________________________________________
 
| arma2oa |= Game name
 
|1.62|= Game version
 
|arg= local |= Arguments in MP
 
|eff= global |= Effects in MP
____________________________________________________________________________________________
 
| Adds a magazine to a person with said ammunition count.
''Note:'' When you add a new weapon via scripting commands as well as the magazines for it, the '''addMagazine''' command has to be given ''before'' the [[addWeapon]] command, otherwise the weapon won't be loaded. |= Description
____________________________________________________________________________________________
 
| unitName '''addMagazine''' [magazineName, ammoCount] |= Syntax
 
|p1= unitName: [[Object]] - person to add the magazine to |= Parameter 1
 
|p2= magazineName: [[String]] - magazine name. See the topic [[:Category:Weapons]] for reference about possible values. |= Parameter 2
 
|p3= ammoCount: [[String]] - number of bullets in the magazine |= Parameter 3
 
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player addMagazine ["30Rnd_556x45_STANAG", 15];</pre> |= Example 1
____________________________________________________________________________________________
 
| [[addMagazine]], [[removeMagazine]], [[removeMagazines]], [[addWeapon]] |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
 
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
 
[[Category:Scripting Commands|ADDMAGAZINE]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21:20, 25 March 2018

Redirect to: