Buildings

The buildings container object is a list of individual battle_building objects. It can be retrieved by calling battle:buildings.

Loaded in Campaign Loaded in Campaign
Loaded in Battle Loaded in Battle
Loaded in Frontend Loaded in Frontend
Back to top

Functionality

buildings:count()

Returns the number of buildings in the list.

Returns:

  1. number count

buildings:item(number index)

Returns a building from the list by its numeric index.

Parameters:

1

number

index

Returns:

  1. battle_building building
Last updated 7/9/2024 11:45:05 AM