API ReferenceGE Extensionsflowgraphnodestimetrials
Race Restarted (Flowgraph Node)
- **Node Name:** `Race Restarted`
Overview
- Node Name:
Race Restarted - Category:
logic - File:
extensions/flowgraph/nodes/timetrials/onRaceRestarted.lua
Fires an impulse when the race is restarted.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow for this node |
Output Pins
| Pin | Type | Description |
|---|---|---|
restart | flow | Impulse when the race is restarted |
Behavior
init()- Initializesrestartflag to false._executionStarted()- Resetsrestartflag.work()- Outputs therestartimpulse (usesself.started- likely a minor bug, should beself.restart), then clears the flag.onScenarioRestarted()- Setsrestartflag to true.
How It Works
- Place this node in a race flowgraph.
- When the player restarts the race,
onScenarioRestartedfires. - The
restartoutput goes high for one frame.
-- Common pattern:
-- [Race Restarted] → restart → [Reset Score] → [Reset UI]Notes
- The
work()function readsself.startedinstead ofself.restart- this appears to be a bug in the vanilla code. The node may not function as intended.
Key Dependencies
onScenarioRestarted- Flowgraph event from the scenario system
See Also
- Race CP Reached (Flowgraph Node) - Related reference
- Race Complete (Flowgraph Node) - Related reference
- Race Config (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide