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 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

PinTypeDescription
flowflowInflow for this node

Output Pins

PinTypeDescription
restartflowImpulse when the race is restarted

Behavior

  • init() - Initializes restart flag to false.
  • _executionStarted() - Resets restart flag.
  • work() - Outputs the restart impulse (uses self.started - likely a minor bug, should be self.restart), then clears the flag.
  • onScenarioRestarted() - Sets restart flag to true.

How It Works

  1. Place this node in a race flowgraph.
  2. When the player restarts the race, onScenarioRestarted fires.
  3. The restart output goes high for one frame.
-- Common pattern:
-- [Race Restarted] → restart → [Reset Score] → [Reset UI]

Notes

  • The work() function reads self.started instead of self.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

Race Config (Flowgraph Node)

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

Race Started (Flowgraph Node)

- **Node Name:** `Race Started`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksNotesKey DependenciesSee Also