addItemCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|arg= local |Multiplayer Arguments=
|arg= local |Multiplayer Arguments=
Line 7: Line 7:
|eff= local |Multiplayer Effects=
|eff= local |Multiplayer Effects=


|0.50|Game version=
|0.50


|gr1= Vehicle Inventory |GROUP1=
|gr1= Vehicle Inventory


| Creates new items and stores them in given container. Works with items, weapons and magazines. For global variant see [[addItemCargoGlobal]] |DESCRIPTION=
| Creates new items and stores them in given container. Works with items, weapons and magazines. For global variant see [[addItemCargoGlobal]]


| box '''addItemCargo''' [item, count] |SYNTAX=
| box '''addItemCargo''' [item, count]


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


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


|p3= item: [[String]] |PARAMETER3=
|p3= item: [[String]]


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


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code> |EXAMPLE1=
|x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code>




| [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] |SEEALSO=
| [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 01:01, 18 January 2021

Hover & click on the images for description

Description

Description:
Creates new items and stores them in given container. Works with items, weapons and magazines. For global variant see addItemCargoGlobal
Groups:
Vehicle Inventory

Syntax

Syntax:
box addItemCargo [item, count]
Parameters:
box: Object
[item, count]: Array
item: String
count: Number
Return Value:
Nothing

Examples

Example 1:
supplyBox addItemCargo ["optic_ARCO", 10];

Additional Information

See also:
addItemCargoGlobalclearItemCargoaddMagazineCargoaddMagazineCargoGlobaladdWeaponCargoaddWeaponCargoGlobaladdBackpackCargoaddBackpackCargoGlobal

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

Notes

Bottom Section