addMagazine array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(arma 3 note formatted)
(Redirection to addMagazine)
 
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.
 
{{Feature arma3|In Arma 3 this command accepts global arguments {{EffArg|cmd|arg|glob}}, i.e. you can use it on the server to give remote unit a magazine with limited ammo. }}|= 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: [[Number]] - number of bullets in the magazine |= Parameter 3
 
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <code>[[player]] [[addMagazine]] ["30Rnd_556x45_STANAG", 15];</code> |= Example 1
____________________________________________________________________________________________
 
| [[addMagazine]], [[addMagazineGlobal]], [[addMagazines]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addMagazinePool]], [[addMagazineTurret]], [[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:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:20, 25 March 2018

Redirect to: