addItemCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|arg= local |Multiplayer Arguments= | |arg= local |Multiplayer Arguments= | ||
Line 7: | Line 7: | ||
|eff= local |Multiplayer Effects= | |eff= local |Multiplayer Effects= | ||
|0.50 | |0.50 | ||
|gr1= Vehicle Inventory | |gr1= Vehicle Inventory | ||
| Creates new items and stores them in given container. Works with items, weapons and magazines. For global variant see [[addItemCargoGlobal]] | | Creates new items and stores them in given container. Works with items, weapons and magazines. For global variant see [[addItemCargoGlobal]] | ||
| box '''addItemCargo''' [item, count] | | box '''addItemCargo''' [item, count] | ||
|p1= box: [[Object]] | |p1= box: [[Object]] | ||
|p2= [item, count]: [[Array]] | |p2= [item, count]: [[Array]] | ||
|p3= item: [[String]] | |p3= item: [[String]] | ||
|p4= count: [[Number]] | |p4= count: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code> | |x1= <code>supplyBox [[addItemCargo]] ["optic_ARCO", 10];</code> | ||
| [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] | | [[addItemCargoGlobal]], [[clearItemCargo]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:01, 18 January 2021
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