addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "| Nothing |x1=" to "|r1= Nothing |x1=")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 0.50
|0.50


|arg= global
|arg= global
Line 11: Line 10:
|gr1= Vehicle Inventory
|gr1= Vehicle Inventory


| Creates new items and stores them in the given container. Works with items, weapons and magazines.
|descr= Creates new items and stores them in the given container. Works with items, weapons and magazines.


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


|p1= box: [[Object]]
|p1= box: [[Object]]
Line 27: Line 26:
|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code>
|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code>


| [[addItemCargo]], [[clearItemCargoGlobal]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]]
|seealso= [[addItemCargo]], [[clearItemCargoGlobal]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]]
 
|mp= Command is executed on all connected clients in multiplayer.
}}
}}

Revision as of 10:50, 11 June 2021

Hover & click on the images for description

Description

Description:
Creates new items and stores them in the given container. Works with items, weapons and magazines.
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