API ReferenceGE Extensionsflowgraphnodestimetrials
Race Complete (Flowgraph Node)
- **Node Name:** `Race Complete`
Overview
- Node Name:
Race Complete - Category:
repeat_instant - File:
extensions/flowgraph/nodes/timetrials/onRaceComplete.lua
Provides flow outputs indicating whether the race has been completed or is still ongoing.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
complete | flow | Active when the race is complete |
ongoing | flow | Active when the race is still in progress |
Behavior
init()- Initializescompleteflag to false._executionStarted()- Resetscompleteto false.work()- Outputscompleteandongoing(mutually exclusive) each frame.onScenarioFinished()- Setscompleteto true.onScenarioRestarted()- Resets state.
How It Works
- Place this node in a race flowgraph.
- While the race runs,
ongoingis true andcompleteis false. - When
onScenarioFinishedfires,completebecomes true permanently. - On restart, both reset.
-- Common pattern:
-- [Race Complete] → complete → [Show Results UI]
-- → ongoing → [Update HUD]Key Dependencies
onScenarioFinished- Flowgraph event from the scenario systemonScenarioRestarted- Flowgraph event for race restart
See Also
- Race CP Reached (Flowgraph Node) - Related reference
- Race Config (Flowgraph Node) - Related reference
- Race Restarted (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide