GetNumBuildings (Harvest)
From OxeyeWiki
getNumBuildings() | ||
Returns the number of buildings currently ingame. This method does not count construction boxes. | ||
Parameter | Expected Type | Description |
Returns | ||
Returns a number representing the amount of buildings in game. |
Example
print("Alive buildings: " .. harvest.getNumBuildings())