RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Race CP Reached (Flowgraph Node)Race Complete (Flowgraph Node)Race Config (Flowgraph Node)Race Restarted (Flowgraph Node)Race Started (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

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

PinTypeDescription
completeflowActive when the race is complete
ongoingflowActive when the race is still in progress

Behavior

  • init() - Initializes complete flag to false.
  • _executionStarted() - Resets complete to false.
  • work() - Outputs complete and ongoing (mutually exclusive) each frame.
  • onScenarioFinished() - Sets complete to true.
  • onScenarioRestarted() - Resets state.

How It Works

  1. Place this node in a race flowgraph.
  2. While the race runs, ongoing is true and complete is false.
  3. When onScenarioFinished fires, complete becomes true permanently.
  4. On restart, both reset.
-- Common pattern:
-- [Race Complete] → complete → [Show Results UI]
--                → ongoing  → [Update HUD]

Key Dependencies

  • onScenarioFinished - Flowgraph event from the scenario system
  • onScenarioRestarted - 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

Race CP Reached (Flowgraph Node)

- **Node Name:** `Race CP Reached`

Race Config (Flowgraph Node)

- **Node Name:** `Race Config`

On this page

OverviewPin SchemaOutput PinsBehaviorHow It WorksKey DependenciesSee Also