GetNumBuildings (Harvest)

From OxeyeWiki

Jump to: navigation, search

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.

Harvest Library

Example

print("Alive buildings: " .. harvest.getNumBuildings())

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox