everyContainer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<br />" to "<br>")
mNo edit summary
Line 5: Line 5:


|1.22|Game version=
|1.22|Game version=
|gr1= Vehicle Inventory |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 10: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''everyContainer''' box |SYNTAX=
| '''everyContainer''' object |SYNTAX=


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



Revision as of 13:20, 24 September 2020

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;
[
	["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

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