# Tech Tree Upgrade Count For Unit

Grammar — Count of upgradeType at inUnit, counting countType
FlagsNative | Function

Returns the count of the specified upgrade for the specified unit.

# Arguments

  • unit — Unit
  • string [ gamelink::Upgrade ] — Upgrade
  • int [ preset::TechTreeCountType ] — Count Type

Returns — int

native int UnitTechTreeUpgradeCount(
	unit inUnit,
	string upgradeType,
	int countType,
);

Category: Tech Tree / Counts

# Examples

— None found —