API ReferenceGE Extensionsflowgraphnodestimetrials
Race Config (Flowgraph Node)
- **Node Name:** `Race Config`
Overview
- Node Name:
Race Config - Category:
provider - File:
extensions/flowgraph/nodes/timetrials/onRaceConfig.lua
Provides the user's race configuration choices (laps, reverse, rolling start).
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
laps | number | Number of laps chosen by the user |
reverse | bool | Whether the user picked the reverse option |
rollingStart | bool | Whether the user picked the rolling start option |
Behavior
init()- Initializesdoneflag. DisablesclearOutPinsOnStart._executionStarted()- Resetsdoneflag.work()- On first execution, reads the scenario config viascenario_scenarios.getScenario()and extractsrollingStart,isReverse, andlapCount. Only runs once.onScenarioRestarted()- Resets so config can be re-read.
How It Works
- Place this node in a race flowgraph.
- It reads the scenario configuration once and outputs the values.
- Use the outputs to configure race logic (e.g., lap counting, direction).
-- Reads from:
local scenario = scenario_scenarios.getScenario()
-- scenario.rollingStart → bool
-- scenario.isReverse → bool
-- scenario.lapCount → numberKey Dependencies
scenario_scenarios.getScenario()- Returns the current scenario configuration
See Also
- Race CP Reached (Flowgraph Node) - Related reference
- Race Complete (Flowgraph Node) - Related reference
- Race Restarted (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide