Difference between revisions of "addWeaponPool"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
[[Category:Scripting Commands|ADDWEAPONPOOL]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ADDWEAPONPOOL]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|ADDWEAPONPOOL]]
 
  
 +
| ofpr |= Game name
  
<h2 style="color:#000066">'''addWeaponPool [''name'', ''count'']'''</h2>
+
|1.75|= Game version
 +
____________________________________________________________________________________________
  
 +
| Add weapons to the weapon pool, of which the player may choose in the following mission. Available in campaigns only. |= Description
 +
____________________________________________________________________________________________
  
'''Operand types:'''
+
| '''addWeaponPool''' [weaponName, count] |= Syntax
  
'''[name, count]:''' [[Array]]
+
|p1= weaponName: [[Object]] - weapon name. See the[[]] topic [[Weapon and Magazine Names]] for reference about possible values. |= Parameter 1
  
'''Type of returned value:'''
+
|p2= count: [[Integer]] - number of weapons to add |= Parameter 2
  
[[Nothing]]
+
| [[Nothing]] |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>addWeaponPool ["M16",5]</pre> |= Example 1
 +
____________________________________________________________________________________________
  
'''Compatibility:'''
+
| [[clearWeaponPool]], [[addMagazinePool]] |= See also
  
Added in version '''1.75'''
+
}}
  
'''Description:'''
+
<h3 style="display:none">Notes</h3>
 +
<dl class="command_description">
 +
<!-- Note Section BEGIN -->
  
Adds '''count''' weapons of type '''name''' 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|ADDWEAPONPOOL]]
'''Example:'''
+
[[Category:Scripting Commands OFP 1.96|ADDWEAPONPOOL]]
 
+
[[Category:Scripting Commands ArmA|ADDWEAPONPOOL]]
'''addWeaponPool''' ["M16",10]
 

Revision as of 22:58, 1 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
addWeaponPool [weaponName, count]
Parameters:
weaponName: Object - weapon name. See the[[]] topic Weapon and Magazine Names for reference about possible values.
count: Integer - number of weapons to add
Return Value:
Nothing

Examples

Example 1:
addWeaponPool ["M16",5]

Additional Information

See also:
clearWeaponPooladdMagazinePool

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