everyContainer: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.20|= Game version _________________...") |
m (template:command argument fix) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
| arma3 |= Game name | | arma3 |= Game name | ||
|1. | |1.22|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''everyContainer''' box |= | | '''everyContainer''' box |SYNTAX= | ||
|p1= box: [[Object]] |= | |p1= box: [[Object]] |PARAMETER1= | ||
| [[Array]] |= | | [[Array]] |RETURNVALUE= | ||
Line 20: | Line 20: | ||
["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>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] |= | | [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
Line 39: | Line 39: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on July 20, 2017 - 12:07 (UTC)</dd> | |||
<dt class="note">[[User:Yuval|Yuval]]</dt> | |||
<dd class="note"> | |||
The returned array is in the following format:<br /> | |||
<code>[ | |||
[containerClassname1, containerObject1], | |||
[containerClassname2, containerObject2], | |||
.... | |||
[containerClassnameN, containerObjectN] | |||
] | |||
</code> | |||
Please do note that [[typeOf]] containerObjectN '''does not''' return containerClassnameN but rather the containerClass configured in config (usually "supplyN") | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 15:39, 7 April 2019
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:
- Uncategorised
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")