Arma 3 Scripting

Command in Vehicle Inventory

everyContainer

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

everyContainer object

Parameters:

Returns: Array of Arrays with [class, container]

Examples

Example 1

everyContainer cursorTarget;
/*
    returns e.g
    [
        ["V_PlateCarrier1_rgr",2bc06b00# 163955: dummyweapon.p3d],
        ["U_B_CombatUniform_mcam",2bc07900# 163954: dummyweapon.p3d]
    ]
*/

See also

everyBackpack · uniformContainer · vestContainer · backpackContainer

Community notes

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