everyContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<br />" to "<br>")
m (Fix SQF)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.22


|1.22|Game version=
|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. |DESCRIPTION=
|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''' box |SYNTAX=
|s1= [[everyContainer]] object


|p1= box: [[Object]] |PARAMETER1=
|p1= object: [[Object]] - vehicle or ammo box
| [[Array]] |RETURNVALUE=


|r1= [[Array]]


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


| [[everyBackpack]], [[uniformContainer]], [[vestContainer]], [[backpackContainer]] |SEEALSO=
|seealso= [[everyBackpack]] [[uniformContainer]] [[vestContainer]] [[backpackContainer]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= Yuval
<!-- Note Section BEGIN -->
|timestamp= 20170720120700
<!-- Note Section END -->
|text= The returned array is in the following format:
</dl>
<sqf>
 
[
<h3 style='display:none'>Bottom Section</h3>
[containerClassname1, containerObject1],
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[containerClassname2, containerObject2],
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
// ...
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[containerClassnameN, containerObjectN]
 
<!-- 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>
</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>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 16:34, 1 November 2022

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:
everyBackpack uniformContainer vestContainer backpackContainer

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
Yuval - c
Posted on Jul 20, 2017 - 12:07 (UTC)
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")