Add Building

Read more about buildings in this chapter.

  1. In Outliner, right-click the scene_art section and select Create:

  2. Find map_03_building_recycling_2_plan_prefab and click it:

    Tip

    When adding a broken building that the player should restore, always use prefabs that have _plan_ in the name.

  3. In Viewport, move and rotate the instance of the map_03_building_recycling_2_plan_prefab so it fits the scene:

    Object editing controls

    Press R once to switch to the Scale mode and drag the axes of the object. Press W to switch back to the Translate mode.

    Warning

    When moving and rotating an object, make sure that the whole object is selected in Outliner (not just a part of it):

  4. Next let's make preparations for the Set Up Objective and Create Scenario steps:

    1. Click to open full settings view for the building:

    2. In the Tagged section, set the Prop Tagget property to build_1:

      This way you will be able to find this building by the tag when scripting additional behavior.

    3. Clear the checkbox of the Enable Disable property:

      This property is used like a flag when scripting: if the checkbox is empty, then it's treated as false, otherwise — as true. Most of the objects in the game have this property. It is used to trigger scripts based on the object's Enable/Disable state.

See the next step.