everyContainer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Vehicle Inventory |GROUP1= | |gr1= Vehicle Inventory |GROUP1= | ||
| 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. |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. |DESCRIPTION= | ||
| '''everyContainer''' object |SYNTAX= | | '''everyContainer''' object |SYNTAX= | ||
Line 23: | Line 20: | ||
["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] | ["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d] | ||
]</pre>|EXAMPLE1= | ]</pre>|EXAMPLE1= | ||
| [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] |SEEALSO= | | [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:23, 17 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")