# Inventory Items Carried

Grammar — All items carried by unit
FlagsNative | Function

Returns a unit group containing all items carried by the specified unit.

# Arguments

  • unit — Unit

Returns — unitgroup

native unitgroup UnitInventoryGroup(unit inUnit);

Category: Unit / Items

# Examples

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

    lv_caster = lp_source;
    lv_target = lp_target;
    lv_itemSources = UnitInventoryGroup(lv_caster);

    // Implementation

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

    }

    auto26E7FEFB_g = UnitInventoryGroup(lv_caster);
    auto26E7FEFB_u = UnitGroupCount(auto26E7FEFB_g, c_unitCountAll);
    for (;; auto26E7FEFB_u -= 1) {

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

    // Variable Initialization
    lv_unit = EventUnit();
    lv_items = UnitInventoryGroup(lv_unit);

    // Actions

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:653

    }

    autoA2999706_g = UnitInventoryGroup(lp_aIUnit);
    autoA2999706_u = UnitGroupCount(autoA2999706_g, c_unitCountAll);
    for (;; autoA2999706_u -= 1) {