# Inventory Item Container

Grammar — Inventory Container of item
FlagsNative | Function

Returns the container index that the specified inventory item is stored in.

# Arguments

  • unit — Item

Returns — int

native int UnitInventoryContainer(unit inUnit);

Category: Unit / Items

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:470

        lv_slot = UnitInventorySlot(lv_item);
        lv_itItemStack = ItemGetChargeCount(lv_item, false);
        lv_container = UnitInventoryContainer(lv_item);
        UnitInventoryCreate(lv_target, UnitGetType(lv_item));
        lv_itemCopy = UnitInventoryLastCreated();