addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 16: Line 16:
|p1= box: [[Object]]
|p1= box: [[Object]]


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


|p3= item: [[String]]
|p3= count: [[Number]] - number of items to add. Since Arma 3 v2.14, negative count will remove items.
 
|p4= count: [[Number]]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code>
|x1= <sqf>supplyBox addItemCargoGlobal ["optic_Arco", 10];</sqf>


|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]]
|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargo]] [[addBackpackCargoGlobal]]
}}
}}

Latest revision as of 00:13, 1 February 2023

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: String
count: Number - number of items to add. Since Arma 3 v2.14, negative count will remove items.
Return Value:
Nothing

Examples

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

Additional Information

See also:
addItemCargo clearItemCargoGlobal addMagazineCargo addMagazineCargoGlobal addWeaponCargo addWeaponCargoGlobal addBackpackCargo addBackpackCargoGlobal

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