SetBuildingEnabled (Harvest)
From OxeyeWiki
setBuildingEnabled(building, setting) | ||
Changes whether a building should be buildable by the player or not. | ||
Parameter | Expected Type | Description |
building | String | The building name to enable or disable. |
setting | Boolean | Set a building being available or not. |
Returns | ||
Returns nothing. |
Example
harvest.setBuildingEnabled("SPARKPRODUCER", false)