everyContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 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.
|descr= 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
|s1= [[everyContainer]] object


|p1= object: [[Object]] - Vehicle or ammo box
|p1= object: [[Object]] - Vehicle or ammo box
|r1= [[Array]]
|r1= [[Array]]


|x1= <code>[[everyContainer]] [[cursorTarget]];</code>
|x1= <code>[[everyContainer]] [[cursorTarget]];
<pre>[
{{codecomment|<nowiki>/*
["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d],
returns e.g
["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d]
[
]</pre>
["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d],
["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d]
]
*/</nowiki>}}</code>


|seealso= [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]]
|seealso= [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]]
Line 29: Line 32:
<dt class="note">[[User:Yuval|Yuval]]</dt>
<dt class="note">[[User:Yuval|Yuval]]</dt>
<dd class="note">
<dd class="note">
The returned array is in the following format:<br>
The returned array is in the following format:
<code>[
<code>[
     [containerClassname1, containerObject1],
     [containerClassname1, containerObject1],
     [containerClassname2, containerObject2],
     [containerClassname2, containerObject2],
     ....
     ...
     [containerClassnameN, containerObjectN]
     [containerClassnameN, containerObjectN]
]
]
</code>
</code>
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 18:01, 12 June 2021

Hover & click on the images for description

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

See also:
everyBackpackuniformContainervestContainerbackpackContainer

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: [ [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")