addItemCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 98337 by killzone_kid on 2016-12-28T14:05:59Z)
m (template:command argument fix)
Line 16: Line 16:
| box '''addItemCargo''' [item, count] |= Syntax
| box '''addItemCargo''' [item, count] |= Syntax


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


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


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


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


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




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


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:28, 7 April 2019

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

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