getItemCargo: Difference between revisions
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version ____________________...") |
BrettMayson (talk | contribs) mNo edit summary |
||
| (36 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 0.50 | |||
| | |arg= global | ||
| | |gr1= Vehicle Inventory | ||
| | |descr= Returns all items names and count from ammo box (or any general weapon holder container). | ||
| | |s1= [[getItemCargo]] box | ||
| [[ | |p1= box: [[Object]] | ||
|r1= [[Array]] with [classes, counts] | |||
* classes: [[Array]] of [[String]]s - Item class names | |||
* counts: [[Array]] of [[Number]]s - Item counts | |||
|x1= < | |x1= <sqf> | ||
</ | getItemCargo cursorTarget; | ||
/* | |||
returns e.g | |||
[ | |||
["5ItemA", "10ItemB"] | |||
[5, 10] | |||
] | |||
*/ | |||
</sqf> | |||
|seealso= [[itemCargo]] [[addItemCargo]] [[addItemCargoGlobal]] [[clearItemCargo]] [[clearItemCargoGlobal]] | |||
}} | }} | ||
Latest revision as of 18:23, 2 April 2026
Description
- Description:
- Returns all items names and count from ammo box (or any general weapon holder container).
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- getItemCargo box
- Parameters:
- box: Object
- Return Value:
- Array with [classes, counts]
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note