Vehem
Modmod Monkey
- Joined
- Nov 22, 2005
- Messages
- 3,219
GC.getGame().getUnitCreatedCount(iUnitType) tells you how many have ever been created this game. Then you have to loop over all units you currently own and count how many match that unit type. Won't work flawlessly if there are 2 players of the Civ in the same game, but works nicely otherwise.
CyStatistics().getPlayerNumUnitsBuilt(iPlayer, iUnitLoop) should do the same job for individual players (I think).