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

PinTypeDescription
lapsnumberNumber of laps chosen by the user
reverseboolWhether the user picked the reverse option
rollingStartboolWhether the user picked the rolling start option

Behavior

  • init() - Initializes done flag. Disables clearOutPinsOnStart.
  • _executionStarted() - Resets done flag.
  • work() - On first execution, reads the scenario config via scenario_scenarios.getScenario() and extracts rollingStart, isReverse, and lapCount. Only runs once.
  • onScenarioRestarted() - Resets so config can be re-read.

How It Works

  1. Place this node in a race flowgraph.
  2. It reads the scenario configuration once and outputs the values.
  3. 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      → number

Key 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

Race Complete (Flowgraph Node)

- **Node Name:** `Race Complete`

Race Restarted (Flowgraph Node)

- **Node Name:** `Race Restarted`

On this page

OverviewPin SchemaOutput PinsBehaviorHow It WorksKey DependenciesSee Also