# Tech Tree Unit Count For Unit
Grammar — Count of unitType at inUnit, counting countType
Flags —Native
|Function
Returns the count of the specified type of unit at the specified unit. This is useful for detecting how many units are in another unit’s queue.
# Arguments
unit
— Unitstring
<gamelink::Unit> — Unit Typeint
<preset::TechTreeCountType> — Count Type
Returns — int
native int UnitTechTreeUnitCount(
unit inUnit,
string unitType,
int countType,
);
# Related
Category: Tech Tree / Counts
- Behavior Count For Player —
int
— TechTreeBehaviorCount - Ability Count For Player —
int
— TechTreeAbilityCount - Unit Count For Player —
int
— TechTreeUnitCount - Unit Alias Count For Player —
int
— TechTreeUnitAliasCount - Upgrade Count For Player —
int
— TechTreeUpgradeCount - Tech Tree Behavior Count For Unit —
int
— UnitTechTreeBehaviorCount - Tech Tree Unit Count For Unit —
int
— UnitTechTreeUnitCount - Tech Tree Upgrade Count For Unit —
int
— UnitTechTreeUpgradeCount
# Examples
— None found —