Player:GetUnitTypeCountTotal¶
Read unit type count total for this player.
player:GetUnitTypeCountTotal(unitType)
Inputs: unitType is an integer unit type ID.
Output: Integer. Unit count, including incomplete objects.
Errors and unavailable states: A wrong receiver or argument type can raise a Lua argument error. No separate error result is returned. Query live state again when the entity may have changed.
See Lua values and game objects for lifetime and enum guidance.