addItemCargo: Difference between revisions
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]] |= | |p1= box: [[Object]] |PARAMETER1= | ||
|p2= [item, count]: [[Array]] |= | |p2= [item, count]: [[Array]] |PARAMETER2= | ||
|p3= item: [[String]] |= | |p3= item: [[String]] |PARAMETER3= | ||
|p4= count: [[Number]] |= | |p4= count: [[Number]] |PARAMETER4= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code> |= | |x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] |= | | [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:28, 7 April 2019
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