addItemPool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.04


|1.04|Game version=
|gr1= Weapon Pool


|gr1= Weapon Pool |GROUP1=
|descr= Adds count items of type name into the weapon pool (used in the campaign to transfer items to the next mission)
____________________________________________________________________________________________


| Adds count items of type name into the weapon pool (used in the campaign to transfer items to the next mission) |DESCRIPTION=
|s1= [[addItemPool]] [itemName, count]
____________________________________________________________________________________________


| '''addItemPool''' [itemName, count] |SYNTAX=
|p1= itemName: [[String]] - item name


|p1= [itemName, count]: [[Array]] |PARAMETER1=
|p2= count: [[Number]] - number of items to add


|p2= itemName: [[String]] - Item name |PARAMETER2=
|r1= [[Nothing]]


|p3= count: [[Number]] - Number of items to add |PARAMETER3=
|x1= <sqf>addItemPool ["ItemGPS", 5];</sqf>


| [[Nothing]] |RETURNVALUE=
|seealso= [[clearItemPool]]
 
 
|x1= <code>addItemPool ["ItemGPS", 5];</code>|EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[clearItemPool]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<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:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:21, 13 May 2022

Hover & click on the images for description

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: 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