addMagazine array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Redirection to addMagazine)
 
(3 intermediate revisions by 2 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.
 
'''Note:''' In Arma 3 this command accepts global arguments, 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}}}}]]
 
{{subst:Add new note/construct|
<!--
This command appears to be broken as of 1.63. It's only adding one magazine for myself.
}}

Latest revision as of 21:20, 25 March 2018

Redirect to: