everyContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.22 | |1.22 | ||
|gr1= Vehicle Inventory | |gr1= Vehicle Inventory | ||
| 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. | | 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. | ||
| '''everyContainer''' object | | '''everyContainer''' object | ||
|p1= object: [[Object]] - Vehicle or ammo box | |p1= object: [[Object]] - Vehicle or ammo box | ||
| [[Array]] | | [[Array]] | ||
Line 19: | Line 19: | ||
["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d], | ["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d], | ||
["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] | ["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] | ||
]</pre> | ]</pre> | ||
| [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] | | [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:37, 18 January 2021
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
Examples
- Example 1:
everyContainer cursorTarget;
[ ["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
Notes
Bottom Section
- Posted on July 20, 2017 - 12:07 (UTC)
- Yuval
-
The returned array is in the following format:
[ [containerClassname1, containerObject1], [containerClassname2, containerObject2], .... [containerClassnameN, containerObjectN] ]
Please do note that typeOf containerObjectN does not return containerClassnameN but rather the containerClass configured in config (usually "supplyN")