addItemPool: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Weapon Pool |GROUP1= | |gr1= Weapon Pool |GROUP1= | ||
| Adds count items of type name into the weapon pool (used in the campaign to transfer items to the next mission) |DESCRIPTION= | | Adds count items of type name into the weapon pool (used in the campaign to transfer items to the next mission) |DESCRIPTION= | ||
| '''addItemPool''' [itemName, count] |SYNTAX= | | '''addItemPool''' [itemName, count] |SYNTAX= | ||
Line 25: | Line 22: | ||
|x1= <code>addItemPool ["ItemGPS", 5];</code>|EXAMPLE1= | |x1= <code>addItemPool ["ItemGPS", 5];</code>|EXAMPLE1= | ||
| [[clearItemPool]] |SEEALSO= | | [[clearItemPool]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:12, 17 January 2021
Description
- Description:
- Adds count items of type name into the weapon pool (used in the campaign to transfer items to the next mission)
- Groups:
- Weapon Pool
Syntax
- Syntax:
- addItemPool [itemName, count]
- Parameters:
- [itemName, count]: Array
- itemName: String - Item name
- count: Number - Number of items to add
- Return Value:
- Nothing
Examples
- Example 1:
addItemPool ["ItemGPS", 5];
Additional Information
- See also:
- clearItemPool
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