# Inventory Item Count

Grammar — Number of Items countType for unit
FlagsNative | Function

Returns the inventory item count for the specified unit.

# Arguments

Returns — int

native int UnitInventoryCount(
	unit inUnit,
	int inCountType,
);

Category: Unit / Items

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:19

const string c_AB_HeroInventory="AInv";
static unit AIUnitGetItem(unit u,string itemType){
    int c=UnitInventoryCount(u,c_unitInventoryCountCarried);
    int i=1;
    unit item;