# Ability Count For Player
Grammar — abilType count for player player, counting countType
Flags —Native
|Function
Returns the count of the specified ability that the specified player’s unit have.
# Arguments
int
— Playerstring
[ gamelink::Abil ] — Abilityint
[ preset::TechTreeCountType ] — Count Type
Returns — int
native int TechTreeAbilityCount(
int player,
string abilType,
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 —