addItemPool: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(24 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
____________________________________________________________________________________________


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


| '''addItemPool''' [itemName, count] |SYNTAX=
|s1= [[addItemPool]] [itemName, count]


|p1= [itemName, count]: [[Array]] |PARAMETER1=
|p1= itemName: [[String]] - item name


|p2= itemName: [[String]] - Item name |PARAMETER2=
|p2= count: [[Number]] - number of items to add


|p3= count: [[Number]] - Number of items to add |PARAMETER3=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>addItemPool ["ItemGPS", 5];</sqf>


 
|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}}}}]]
[[Category:Command Group: Weapon Pool|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11: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