Skip to content

Set Up Objective

Read more about the objective system in this chapter.

Create objective

  1. In Outliner, select scene_settings > scene_settings_prefab > objectives.
  2. In Inspector, click + next to the Prop Level Objectives property:

  3. In the dropdown menu, select Objective and click Apply:

  4. Right-click the new objective and select Rename. Enter the new name FirstAndOnlyObjective:

  5. In the objective parameters, enable the Track On Start option:

Add step to objective

Read more about steps in this chapter.

Click + next to the objective name:

At the bottom of the objective parameters, a new section should appear:

Add task to objective

Read more about tasks in this chapter.

  1. Click + next to the step name:

  2. In the dropdown menu, select ReachLocation and click Apply:

  3. The Reach location tasks have two main properties: Displayed Zones — the locations that will be marked in the scene when the task becomes activated, and Target Domains — the target locations the player needs to reach. The locations are the same, but the set up for the properties is different.

    1. To set up Displayed Zone:

      1. In Outliner, add an instance of the objective_zone prefab to the scene_art section (the same way a building or a vehicle have been added):

      2. In Inspector, in the Prop Objective Zone Effect section, set Diameter to 20:

      3. In Viewport, move the instance of the objective_zone prefab away from the starting vehicle:

      4. Open the ReachLocation task settings and click + next to the Displayed Zones property:

      5. In the dropdown menu, select ObjectiveDisplayedZone and click Apply:

      6. Click ... next to the name of the zone, select objective_zone and click OK:

    2. To set up Target Domains:

      1. In Outliner, add an instance of the objective_domain prefab to the scene_art section (the same way buildings or vehicle have been added):

      2. In Inspector, in the Domain section, check that the Tag List in Filters includes the CurrentTruck tag:

      3. In Viewport, move the instance of the objective_domain prefab to the same place as objective_zone, but place it slightly lower than the ground level:

        Adjust the size of the objective_domain so it covers the objective_zone: 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.

      4. Open the ReachLocation task settings and click + next to the Target Domains property:

      5. Select objective_domain and click OK:

Add verifications

Read more about verifications in this chapter.

Every task needs a corresponding verification:

  1. In Inspector, in the objective settings, open the step section. Click + next to the Verifications property:

  2. Select TaskBasedVerification and click Apply:

  3. Specify the task name: ReachLocation.

  4. Click + next to the Focus Zone property, select objective_zone and click OK. This will allow the player to focus on this location in the Eagle Mode.

Add rewards

Read more about rewards in this chapter.

You can reward player for completing a step, an objective or an infrastructure request. Let's add a reward for completing the first step of the objective:

  1. Open the [0] step settings and click + next to the Actions On Finish Step property:

  2. Select UnlockObjectLogic and click Apply:

  3. Click ... next to the action name, select map_03_building_recycling_2_plan_prefab and click Apply:

This way, after the player have completed the first (and only) step of the objective, the building's flag Enable Disable will be set to true. For this to activate something, we need to create a short scenario (script).

See the next step.