# Inventory Item Slot

Grammar — Inventory Slot of item
FlagsNative | Function

Returns the slot index for the specified inventory item.

# Arguments

  • unit — Item

Returns — int

native int UnitInventorySlot(unit inItem);

Category: Unit / Items

# Examples

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

        lv_item = UnitGroupUnitFromEnd(autoD806A99B_g, autoD806A99B_u);
        if (lv_item == null) { break; }
        lv_slot = UnitInventorySlot(lv_item);
        lv_itItemStack = ItemGetChargeCount(lv_item, false);
        lv_container = UnitInventoryContainer(lv_item);