Skip to content

GetBuildingTypeCountTotal

Read building type count total from current game state.

GetBuildingTypeCountTotal(buildingType)

Inputs: buildingType is an integer building type ID.

Output: count, available: Building count, including incomplete objects.

Errors and unavailable states: Wrong argument types can raise a Lua argument error. If available is false, ignore the first return value; it is not a confirmed result.

See Game data and world for related calls and usage notes.