everyContainer: Difference between revisions
Lou Montana (talk | contribs) m (Fix SQF) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 12: | Line 12: | ||
|p1= object: [[Object]] - vehicle or ammo box | |p1= object: [[Object]] - vehicle or ammo box | ||
|r1= [[Array]] | |r1= [[Array]] of [[Array]]s with [class, container] | ||
* class: [[String]] - class name of the container | |||
* container: [[Object]] - container object | |||
|x1= <sqf> | |x1= <sqf> | ||
Latest revision as of 18:20, 2 April 2026
Description
- Description:
- Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder.
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- everyContainer object
- Parameters:
- object: Object - vehicle or ammo box
- Return Value:
- Array of Arrays with [class, container]
Examples
- Example 1:
- everyContainer cursorTarget; /* returns e.g [ ["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d], ["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] ] */
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
- Posted on Jul 20, 2017 - 12:07 (UTC)
-
The returned array is in the following format:
Please do note that typeOf containerObjectN does not return containerClassnameN but rather the containerClass configured in config (usually "supplyN")[ [containerClassname1, containerObject1], [containerClassname2, containerObject2], // ... [containerClassnameN, containerObjectN] ]