addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
No edit summary
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{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= Global variant of [[addItemCargo]].


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


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


|p2= [item, count]: [[Array]]
|p2= item: [[String]]
 
|p3= item: [[String]]
 
|p4= count: [[Number]]
 
| [[Nothing]]
 


|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code>
|p3= count: [[Number]] - number of items to add. Since Arma 3 v2.14, negative count will remove items.


|r1= [[Nothing]]


| [[addItemCargo]], [[clearItemCargoGlobal]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]]
|x1= <sqf>supplyBox addItemCargoGlobal ["optic_Arco", 10];</sqf>


|mp= Command is executed on all connected clients in multiplayer. |MPBEHAVIOUR=  
|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargo]] [[addBackpackCargoGlobal]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01: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