# Unit Alias Count For Player

GrammarunitType alias count for player player, counting countType
FlagsNative | Function

Returns the number of unit aliases, of a specific unit alias determined by the Unit parameter, owned by the chosen player. The Count Type will determine what state the units must be in to be considered for this function.

# Arguments

Returns — int

native int TechTreeUnitAliasCount(
	int player,
	string unitType,
	int countType,
);

Category: Tech Tree / Counts

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L6087
TechTreeUnitAliasCount(lp_p, "Alias_TychusUniqueUnit", c_techCountIncompleteOnly)

# mods/warcoop/warmeleeai.sc2mod

Common_ai.galaxy

// L21
TechTreeUnitAliasCount(player,unitid, c_techCountQueuedOrBetter)
// L24
TechTreeUnitAliasCount(player,unitid, c_techCountCompleteOnly)

# mods/warcoop/warmeleeai.sc2mod

Orc.galaxy

// L53
TechTreeUnitAliasCount(player, aliasUnitType, c_techCountQueuedOrBetter)