addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version ____________________...")
 
No edit summary
 
(43 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|arg= global
____________________________________________________________________________________________


| Create new items and store them to the weapon holder. |= Description
|eff= global
____________________________________________________________________________________________


| unit '''addItemCargoGlobal''' [item, count] |= Syntax
|gr1= Vehicle Inventory


|p1= unit: [[Object]] |= PARAMETER1
|descr= Global variant of [[addItemCargo]].


|p2= [item, count]: [[Array]]  |= PARAMETER2
|s1= box [[addItemCargoGlobal]] [item, count]


|p3= item: [[String]] |= PARAMETER3
|p1= box: [[Object]]


|p4= count: [[Number]] |= PARAMETER4
|p2= item: [[String]]


| [[Nothing]] |= RETURNVALUE
|p3= count: [[Number]] - number of items to add. Since Arma 3 v2.14, negative count will remove items.


|r1= [[Nothing]]


|x1= <pre>rearmTruckOne addItemCargoGlobal [&quot;optic_ARCO&quot;, 10]</pre> |= EXAMPLE1
|x1= <sqf>supplyBox addItemCargoGlobal ["optic_Arco", 10];</sqf>


____________________________________________________________________________________________
|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargo]] [[addBackpackCargoGlobal]]
 
|  |= 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|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:13, 1 February 2023

Hover & click on the images for description

Description

Description:
Global variant of addItemCargo.
Groups:
Vehicle Inventory

Syntax

Syntax:
box addItemCargoGlobal [item, count]
Parameters:
box: Object
item: String
count: Number - number of items to add. Since Arma 3 v2.14, negative count will remove items.
Return Value:
Nothing

Examples

Example 1:
supplyBox addItemCargoGlobal ["optic_Arco", 10];

Additional Information

See also:
addItemCargo clearItemCargoGlobal addMagazineCargo addMagazineCargoGlobal addWeaponCargo addWeaponCargoGlobal addBackpackCargo addBackpackCargoGlobal

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