everyContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\{\{ *codecomment *\|([^}]*) *\}\}([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>") |
||
Line 33: | Line 33: | ||
<dd class="note"> | <dd class="note"> | ||
The returned array is in the following format: | The returned array is in the following format: | ||
< | <sqf>[ | ||
[containerClassname1, containerObject1], | [containerClassname1, containerObject1], | ||
[containerClassname2, containerObject2], | [containerClassname2, containerObject2], | ||
Line 39: | Line 39: | ||
[containerClassnameN, containerObjectN] | [containerClassnameN, containerObjectN] | ||
] | ] | ||
</ | </sqf> | ||
Please do note that [[typeOf]] containerObjectN '''does not''' return containerClassnameN but rather the containerClass configured in config (usually "supplyN") | Please do note that [[typeOf]] containerObjectN '''does not''' return containerClassnameN but rather the containerClass configured in config (usually "supplyN") | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 10:57, 13 May 2022
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
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 or on the Forums.
Only post proven facts here! Add Note
- Posted on July 20, 2017 - 12:07 (UTC)
- Yuval
-
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] ]