itemCargo: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *F([a-z ])" to "$1 - f$2") |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 13: | Line 13: | ||
|p1= object: [[Object]] - vehicle or ammo box | |p1= object: [[Object]] - vehicle or ammo box | ||
|r1= [[Array]] - | |r1= [[Array]] of [[String]]s - ["ItemType1","ItemType2","ItemType3"...] | ||
|x1= <sqf>hint str itemCargo vestContainer player;</sqf> | |x1= <sqf>hint str itemCargo vestContainer player;</sqf> | ||
Latest revision as of 21:24, 31 December 2025
Description
- Description:
- Get array with items from ammo box (or any general weapon holder container).
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- itemCargo object
- Parameters:
- object: Object - vehicle or ammo box
- Return Value:
- Array of Strings - ["ItemType1","ItemType2","ItemType3"...]
Examples
- Example 1:
Additional Information
- See also:
- getItemCargo addItemCargo addItemCargoGlobal clearItemCargo clearItemCargoGlobal weaponCargo magazineCargo
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note