addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=
Line 9: Line 9:
|eff= global |Multiplayer Effects=
|eff= global |Multiplayer Effects=


|gr1= Vehicle Inventory |GROUP1=
|gr1= Vehicle Inventory


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


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


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


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


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


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


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




|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code> |EXAMPLE1=
|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. |MPBEHAVIOUR=  
|mp= Command is executed on all connected clients in multiplayer. |MPBEHAVIOUR=  

Revision as of 00:03, 18 January 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.
Multiplayer:
Command is executed on all connected clients in multiplayer.
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

Notes

Bottom Section