addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(35 intermediate revisions by 6 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


|arg= global |= Arguments in MP
|eff= global


|eff= global |= Effects in MP
|gr1= Vehicle Inventory
____________________________________________________________________________________________


| Creates new items and stores them in the given container. Works with items, weapons and magazines. |= Description
|descr= Global variant of [[addItemCargo]].
____________________________________________________________________________________________


| box '''addItemCargoGlobal''' [item, count] |= Syntax
|s1= box [[addItemCargoGlobal]] [item, count]


|p1= box: [[Object]] |= PARAMETER1
|p1= box: [[Object]]


|p2= [item, count]: [[Array]] |= PARAMETER2
|p2= item: [[String]]


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


|p4= count: [[Number]] |= PARAMETER4
|r1= [[Nothing]]


| [[Nothing]] |= RETURNVALUE
|x1= <sqf>supplyBox addItemCargoGlobal ["optic_Arco", 10];</sqf>


 
|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargo]] [[addBackpackCargoGlobal]]
|x1= <pre>rearmTruckOne addItemCargoGlobal [&quot;optic_ARCO&quot;, 10]</pre> |= EXAMPLE1
 
____________________________________________________________________________________________
 
| [[addItemCargo]], [[clearItemCargoGlobal]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] |= SEEALSO
 
|mp= Command is executed on all connected clients in multiplayer. |= 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 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