addMagazinePool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ADDMAGAZINEPOOL]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ADDMAGAZINEPOOL]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|ADDMAGAZINEPOOL]]


| ofpr |= Game name


<h2 style="color:#000066">'''addMagazinePool ''Null'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Add magazines to the magazine pool, of which the player may choose in the following mission. Available in campaigns only. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''addMagazinePool''' [magazineName, count] |= Syntax


'''Null:''' [[Array]]
|p1= magazineName: [[String]] - magazine name. See the[[]] topic [[Weapon and Magazine Names]] for reference about possible values. |= Parameter 1


'''Type of returned value:'''
|p2= count: [[Integer]] - number of magazines to add |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>addMagazinePool ["M16",20]</pre> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
| [[clearMagazinePool]], [[addWeaponPool]] |= See also


Added in version '''1.75'''
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Adds magazines of type named into weapon pool.
<!-- Note Section END -->
</dl>


Used in campaign to transfer weapons into next mission.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|ADDMAGAZINEPOOL]]
'''Example:'''
[[Category:Scripting Commands OFP 1.96|ADDMAGAZINEPOOL]]
 
[[Category:Scripting Commands ArmA|ADDMAGAZINEPOOL]]
'''addMagazinePool''' ["M16",10]

Revision as of 22:56, 1 August 2006

Hover & click on the images for description

Description

Description:
Add magazines to the magazine pool, of which the player may choose in the following mission. Available in campaigns only.
Groups:
Uncategorised

Syntax

Syntax:
addMagazinePool [magazineName, count]
Parameters:
magazineName: String - magazine name. See the[[]] topic Weapon and Magazine Names for reference about possible values.
count: Integer - number of magazines to add
Return Value:
Nothing

Examples

Example 1:
addMagazinePool ["M16",20]

Additional Information

See also:
clearMagazinePooladdWeaponPool

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