User Tools

Site Tools


4rpl:commands:getunitcount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:getunitcount [2021/01/08 11:01] – external edit 127.0.0.14rpl:commands:getunitcount [2023/06/14 18:56] (current) – [Description] durikkan
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Returns a count of the number of units of the specified type. See [[GetUnitCanBuild]] for a list of strings.+Returns a count of the number of units of the specified type. See [[Unit Types]] for a list of strings.
 The count includes both built and unbuilt units. The count includes both built and unbuilt units.
  
 +Take note: This only works for player buildable units such as cannons, towers or airships.  It does not work for anything else (eggs, totems, ultraC, emitters, etc.).  For other things you'd need to use GetUnitsByType and use GetListCount on it.  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/getunitcount.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1