addItemCargoGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[Cc]ategory:[ _]?Arma[ _]3:[ _]([^|]*)[ _]?\|.*\]\]" to "{{GameCategory|arma3|$1}}")
No edit summary
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 0.50


|0.50|Game version=
|arg= global


|arg= global |Multiplayer Arguments=
|eff= global


|eff= global |Multiplayer Effects=
|gr1= Vehicle Inventory


|gr1= Vehicle Inventory |GROUP1=
|descr= Global variant of [[addItemCargo]].
____________________________________________________________________________________________


| Creates new items and stores them in the given container. Works with items, weapons and magazines. |DESCRIPTION=
|s1= box [[addItemCargoGlobal]] [item, count]
____________________________________________________________________________________________


| box '''addItemCargoGlobal''' [item, count] |SYNTAX=
|p1= box: [[Object]]


|p1= box: [[Object]] |PARAMETER1=
|p2= item: [[String]]


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


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


|p4= count: [[Number]]  |PARAMETER4=
|x1= <sqf>supplyBox addItemCargoGlobal ["optic_Arco", 10];</sqf>


| [[Nothing]] |RETURNVALUE=
|seealso= [[addItemCargo]] [[clearItemCargoGlobal]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[addWeaponCargo]] [[addWeaponCargoGlobal]] [[addBackpackCargo]] [[addBackpackCargoGlobal]]
 
 
|x1= <code>supplyBox [[addItemCargoGlobal]] ["optic_Arco", 10];</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[addItemCargo]], [[clearItemCargoGlobal]], [[addMagazineCargo]], [[addMagazineCargoGlobal]], [[addWeaponCargo]], [[addWeaponCargoGlobal]], [[addBackpackCargo]], [[addBackpackCargoGlobal]] |SEEALSO=
 
|mp= Command is executed on all connected clients in multiplayer. |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<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_List}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[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