addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
(Replaced description with reference to addItemCargo to not have to maintain the same info on both articles)
Line 10: Line 10:
|gr1= Vehicle Inventory
|gr1= Vehicle Inventory


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


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

Revision as of 22:15, 24 October 2021

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, count]: Array
item: String
count: Number
Return Value:
Nothing

Examples

Example 1:
supplyBox addItemCargoGlobal ["optic_Arco", 10];

Additional Information

See also:
addItemCargoclearItemCargoGlobaladdMagazineCargoaddMagazineCargoGlobaladdWeaponCargoaddWeaponCargoGlobaladdBackpackCargoaddBackpackCargoGlobal

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