GetPlayerUnitTypeCount
- Parameters
p playerunitid integer- comment
Returns how many
units of a certain type aplayerhas.- common.ai native
- To use this native you have to declare it in your script.
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
integer- Source code
native GetPlayerUnitTypeCount takes player p, integer unitid returns integer