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

Set Stage Lights (Flowgraph Node)

- **Node Name:** `Set Stage Lights`

Overview

  • Node Name: Set Stage Lights
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/mission/stageLightsDragRace.lua
  • Icon: AI icon
  • Color: AI color

Activates or deactivates the Pre-Stage and Stage lights on the drag-race Christmas tree. Controls individual lane sides (left/right) independently. Used alongside lightsController for the full countdown sequence.

Pin Schema

Input Pins

PinTypeDefaultDescription
flowflow-Inflow
resetflow (impulse)-Resets and hides all stage lights
sidestring"l"Lane side to update: "l" (left) or "r" (right)
lightstring"preStage"Which light to turn on: "preStage" or "stage"

Output Pins

PinTypeDescription
flowflowOutflow

Internals

  • self.lights.stageLights - table of four scene objects: prestageLightL, prestageLightR, stageLightL, stageLightR.
  • postInit() sets up hard templates for the side and light pins (dropdown values in the editor).
  • initLights() resolves scene-tree objects by name.

How It Works

  1. Reset - When reset fires, calls initLights() to resolve scene objects, then hides all four stage lights.
  2. Normal operation - Based on the side and light input values, unhides the corresponding light object:
    • side="l" + light="preStage" → show prestageLightL
    • side="l" + light="stage" → show stageLightL
    • side="r" + light="preStage" → show prestageLightR
    • side="r" + light="stage" → show stageLightR

Lua Code Example

-- In a drag race flowgraph:
-- vehicle enters pre-stage zone → stageLightsDragRace (side="l", light="preStage")
-- vehicle enters stage zone → stageLightsDragRace (side="l", light="stage")
-- Both lanes staged → lightsController begins countdown

Key Dependencies

  • scenetree.findObject(name) - requires named light objects: "Prestagelight_l", "Prestagelight_r", "Stagelight_l", "Stagelight_r"

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
  • Clear Lights Drag Race (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Select Heist Spots (Flowgraph Node)

- **Node Name:** `Select Heist Spots`

Update Display Drag Race (Flowgraph Node)

- **Node Name:** `Update Display Drag Race`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:_executionStarted()C:work()See Also