# Remove Inventory Item

Grammar — Remove inventory item item
FlagsNative | Action

Removes an item from inventory

# Arguments

  • unit — Item

Returns — void

native void UnitInventoryRemove(unit inItem);

Category: Unit / Items

# Examples

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

            ItemSetChargeCount(lv_itItem, (ItemGetChargeCount(lv_itItem, false)-1));
            if ((ItemGetChargeCount(lv_itItem, false) <= 0.0)) {
                UnitInventoryRemove(lv_itItem);
            }