Builders

In order to create a building within the game, we utilize the Builders. Builders are the workers of a faction that can create buildings.

Once you create a builder, you can click on him and a Builder Bar will pop-up on the right that shows all the buildings you can create Currently not setup in the DEMO project.

Click on the building and select a spot.

NOTE: If the building icons have not been setup, be aware that the building buttons show up in black. If you hover over the button, you'll see the name of the building that it creates.

How to set it up yourself

For testing purposes, you may want to add build options to the porter. You can do so by typing "playercontroller" in the Unreal Editor searchbar. BP_PlayerController will show up, open it.

On the right side, under RTS > Construction you see the "Buildings" section. There you can add new buildings to the list by clicking on the + icon (Adds Element). Add your EC_[BuildingName] to the list and you are good to go!

image

NOTE: If you get the message "Cannot add a new key to the map while a key with the default value exists", this is because there is a building present with key 0. Unreal wants new entries to have the 0 key, so change the current key to the lowest available unique number that isn't 0 and you'll be able to add a New Element.