GetUnitCount
- Parameters
unitid integerRawcode to specify unit type to count
- comment
Counts units of type for the AI player whether it is trained/built or in progress.
- note
See:
GetUnitCountDone- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
integer- Source code
native GetUnitCount takes integer unitid returns integer