# Tech Tree Upgrade Count For Unit
Grammar — Count of upgradeType at inUnit, counting countType
Flags —Native
|Function
Returns the count of the specified upgrade for the specified unit.
# Arguments
unit
— Unitstring
[ gamelink::Upgrade ] — Upgradeint
[ preset::TechTreeCountType ] — Count Type
Returns — int
native int UnitTechTreeUpgradeCount(
unit inUnit,
string upgradeType,
int countType,
);
# Related
Category: Tech Tree / Counts
- [F] —
int
— Behavior Count For Player — ( TechTreeBehaviorCount ) - [F] —
int
— Ability Count For Player — ( TechTreeAbilityCount ) - [F] —
int
— Unit Count For Player — ( TechTreeUnitCount ) - [F] —
int
— Unit Alias Count For Player — ( TechTreeUnitAliasCount ) - [F] —
int
— Upgrade Count For Player — ( TechTreeUpgradeCount ) - [F] —
int
— Tech Tree Behavior Count For Unit — ( UnitTechTreeBehaviorCount ) - [F] —
int
— Tech Tree Unit Count For Unit — ( UnitTechTreeUnitCount ) - [F] —
int
— Tech Tree Upgrade Count For Unit — ( UnitTechTreeUpgradeCount )
# Examples
— None found —