Infrastructure Request
Infrastructure Request is a special type of tasks (requests) to fix or to create some sort of infrastructure: piping, roads, electiricity, and so on. They are linked to verifications and considired a part of a step. If a step is activated, requests will be displayed in the Infrastructure tab of tasks.
To add an infrastructure request to the scene:
- In Outliner, select scene_settings > scene_settings_prefab > infrastructure. This will open the objectives' settings in Inspector:
- Click + next to the Prop Level Infrastructure Requests property, select the type of the request in the dropdown menu and click Apply:
This will create a new request subsection:
Tip
To debug infrastructuire requests in the Game mode, use the infrastructure Debug UI (F2 > 3 > 7 > 3).
Request types¶
Debug¶
This request is only used for debug purposes: to see how a request is displayed in the UI.
- Name — one of the predefined request names.
- Is Undiscoverable — defines whether the request is blocked until the player starts tracking the corresponding objective, or not.
- Is Electricity — displays the request as Conduct Electricity request, that is, instead of one building, two buildings are shown.
- First/Second building — a building object in the scene, for which the request has been made.
- Rewards — XP, money, resources that the player can get for completing the request.
Electricity¶
The player needs to conduct electricity to one of the buildings in the scene.
- Name — one of the predefined request names.
- Building — a building object in the scene, for which the request has been made.
- Rewards — XP, money, resources that the player can get for completing the request.
RoadPlan¶
The player needs to build a road (either manually or using helper AIs).
- Name — one of the predefined request names.
- **Is Undiscoverable ** — defines whether the request is blocked until the player starts tracking the corresponding objective, or not.
- Road Plan Container — an object in the scene with the settings for the planned road (see the Road Plan Container section).
- First/Second building — a building object in the scene, for which the request has been made.
- Rewards — XP, money, resources that the player can get for completing the request.
Establish¶
The player needs to build a road between two buildings. This road will be verified using AI vehicles. If any of the vehicles aren't able to successfully finish a ride, the player must make adjustments to the road and manually reverify it.
- Name — one of the predefined request names.
- Is Undiscoverable — defines whether the request is blocked until the player starts tracking the corresponding objective, or not.
- Rewards — XP, money, resources that the player can get for completing the request.
- First/Second building — a building object in the scene, for which the request has been made. These building are only needed for visuals. The actual start and finish of the road are set up separately in the Establish Setting > First/Second Node property.
- Road Type — the required type of road. Only affects how the task is shown in UI.
- Difficulty — the difficulty level shown in UI.
- Establish Settings:
- First/Second Node — the start and finish of the road. To create the nodes, add two instances of the establish_route_zone_prefab to the scene. The finish node must have the Is Finish option enabled in the Prop Objective Establish Task Node property:
- Finish Radius — when a vehicle is inside this radius from the finish point, it despawns.
- Spawn Regular Truck Delay Ms — delay between spawning vehicles on the road.
- Max Bump for Segment Count — how many times a vehicle can bump into something before disappearing off the road. The counter is reset on every segment of the road.
- Regular Pool — settings of the vehicles that will be riding on this road:
- Truck Name — one of the predefined types of trucks. Can only be a truck with base_ in the name.
- Cargo Name — one of the predefined types of cargo.
- First/Second Node — the start and finish of the road. To create the nodes, add two instances of the establish_route_zone_prefab to the scene. The finish node must have the Is Finish option enabled in the Prop Objective Establish Task Node property:
- Is One Shot Request — if selected, the road will only be checked once by AI vehicles and then no vehicles will be using this road. If the request is one shot, the Regular Pool list can be left empty.
Piping¶
The player needs to fix piping.
- Name — one of the predefined request names.
- Is Undiscoverable — defines whether the request is blocked until the player starts tracking the corresponding objective, or not.
- Piping:
- From There/To Here — a building object in the scene, from/to which the piping goes.
- Broken Pipes — a list of pipes that the player needs to fix. Each element of the list must be a phantom object in the scene — an instance of the pipe prefab with phantom in the name.\ It is recommended to use auto_metal_pipes_resource_sub_pipe_new_phantom_prefab.
- Rewards — XP, money, resources that the player can get for completing the request.