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
ARunForLife (Flowgraph Node)Clear Lights Drag Race (Flowgraph Node)Countdown Lights Controller (Flowgraph Node)Get Custom Vehicle Data (Flowgraph Node)Get Mission Setup Data (Flowgraph Node)Check Players Position / Go To Start Line (Flowgraph Node)KnockAway Check (Flowgraph Node)Lights Controller (Flowgraph Node)Mission Post Clean (Flowgraph Node)Mission Cleanup / Pre Clean (Flowgraph Node)Prepare Vehicle (Flowgraph Node)Remove Stashed Player Vehicle (Flowgraph Node)Select Garage Vehicle (Flowgraph Node)Select Garage Sites / Zones (Flowgraph Node)Select Garage Spots (Flowgraph Node)Select Heist Spots (Flowgraph Node)Set Stage Lights (Flowgraph Node)Update Display Drag Race (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 Extensionsflowgraphnodesmission

Clear Lights Drag Race (Flowgraph Node)

- **Node Name:** `Clear Lights Dragrace`

Overview

  • Node Name: Clear Lights Dragrace
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/mission/clearLightsDragRace.lua

Clears (hides) all drag race lights and digit displays when a mission is finished or abandoned.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node

Output Pins

PinTypeDescription
flowflowOutflow for this node

Internals

Light Objects Found by Name

Stage Lights:

  • Prestagelight_l, Prestagelight_r
  • Stagelight_l, Stagelight_r

Countdown Lights:

  • Amberlight1_R/L, Amberlight2_R/L, Amberlight3_R/L
  • Greenlight_R/L
  • Redlight_R/L

Digit Displays:

  • display_time_1-5_l/r
  • display_speed_1-5_l/r

How It Works

  1. initLights() finds all light scene objects by name and hides every one of them (stage lights + countdown lights).
  2. clearDigits() finds all 20 digit display objects and hides them.
  3. Both operations run every frame when flow is active (designed to be triggered once on mission cleanup).

Lua Example

-- Typical flowgraph connection:
-- Mission "abandoned" or "completed" flow → this node's flow in
-- Ensures the drag strip is visually reset for the next race

Key Dependencies

  • scenetree.findObject() - locates light and display objects by name
  • _flowgraph_createNode() - standard flowgraph node registration

Additional Methods

C:_executionStarted()

Called when graph execution starts. Used for initialization/reset.

C:work()

Main work function called each frame/tick when the node is active.


See Also

  • ARunForLife (Flowgraph Node) - Related reference
  • Update Display Drag Race (Flowgraph Node) - Related reference
  • Countdown Lights Controller (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

ARunForLife (Flowgraph Node)

- **Node Name:** `ARunForLife`

Countdown Lights Controller (Flowgraph Node)

- **Node Name:** `Countdown Lights Controller`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsLight Objects Found by NameHow It WorksLua ExampleKey DependenciesAdditional MethodsC:_executionStarted()C:work()See Also