# Tech Tree Unit Count For Unit

Grammar — Count of unitType at inUnit, counting countType
FlagsNative | 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 — Unit
  • string<gamelink::Unit> — Unit Type
  • int<preset::TechTreeCountType> — Count Type

Returns — int

native int UnitTechTreeUnitCount(
	unit inUnit,
	string unitType,
	int countType,
);

Category: Tech Tree / Counts

# Examples

— None found —