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
Collection Marker (Flowgraph Node)Custom Lua Command (Flowgraph Node)Get Object Field (Flowgraph Node)Get Player Vehicle ID (Flowgraph Node)Get Point on Decalroad (Flowgraph Node)Show/Hide Object (Flowgraph Node)ID by Name (Flowgraph Node)Keep Prefab (Flowgraph Node)Particle Emitter (Flowgraph Node)Point on Decalroad (Flowgraph Node)Raceline Parking (Flowgraph Node)Raycast (Flowgraph Node)Parking Markers / Rect Marker (Flowgraph Node)Reload Collision (Flowgraph Node)Reload Nav Graph (Flowgraph Node)Remove Prefab (Flowgraph Node)Reset Prefab (Flowgraph Node)Set Object Field (Flowgraph Node)Sevensegment Display (Flowgraph Node)Single Marker (Flowgraph Node)Spawn Light / SpotLight (Flowgraph Node)Spawn Prefab (Flowgraph Node)Spawn TSStatic (Flowgraph Node)Store Statics (Flowgraph Node)Track Prefab (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 Extensionsflowgraphnodesscene

Sevensegment Display (Flowgraph Node)

- **Node Name:** `Sevensegment Display`

Overview

  • Node Name: Sevensegment Display
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/scene/sevensegmentDisplay.lua

Creates and manages a seven-segment display composed of TSStatic digit shapes in the 3D scene. Supports number, minutes, and hours display modes.

Pin Schema

Input Pins

PinTypeDescription
flowflowStandard inflow
clearflow (impulse)Clears all display objects
positionvec3Position of the display
rotationquatRotation of the display
numbernumberThe number to display

Output Pins

PinTypeDescription
numbernumberThe currently displayed number

Internals (data fields)

FieldDefaultPurpose
data.mode'minutes'Display mode: number, minutes, or hours
data.scaling1Scale factor for digit shapes
data.count5Number of digit slots
data.decimals3Decimal point position
data.decimalOffset1Offset for decimal dot
data.spacing5Spacing between digits
data.shapeFolder"art/shapes/quarter_mile_display/display_"Path prefix for digit meshes
data.showLeadingZeroesfalseWhether to show leading zeroes

Behavior

  • work() - Creates display objects on first run, then updates digit shapes when the number changes.
  • createObjects() - Spawns data.count TSStatic objects for digits, plus decimal dots and colon separators for minutes mode.
  • updateNumbers() - Extracts each digit from the number and swaps the TSStatic shapeName to the corresponding digit mesh (e.g., display_3.dae). Hides leading zeroes unless configured otherwise.
  • clearObjects() - Deletes all spawned TSStatic objects.

How It Works

  1. On first frame, createObjects() spawns digit TSStatic objects positioned along a line with configurable spacing.
  2. For minutes mode, colon dots are added between minute and second digits.
  3. When the input number changes, updateNumbers() decomposes it into individual digits and updates each TSStatic's shape file.
  4. Uses preApply()/postApply() to hot-swap shape meshes at runtime.
  5. All objects are cleaned up on execution stop, mission end, or destroy.

Key Dependencies

  • createObject("TSStatic") - spawns digit mesh objects
  • art/shapes/quarter_mile_display/display_*.dae - digit shape assets (0-9, empty, period)

Additional Methods

C:_executionStarted()

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

C:_executionStopped()

Called when graph execution stops. Used for cleanup.

C:init(mgr, ...)

Initializes the node, setting up pins and default properties.

Parameters:

  • mgr
  • ...

C:makeDot(offset, name)

Node method.

Parameters:

  • offset
  • name

C:onClientEndMission()

Cleanup callback when the mission/level ends.


See Also

  • Collection Marker (Flowgraph Node) - Related reference
  • Custom Lua Command (Flowgraph Node) - Related reference
  • Get Object Field (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Set Object Field (Flowgraph Node)

- **Node Name:** `Set Object Field`

Single Marker (Flowgraph Node)

- **Node Name:** `Single Marker`

On this page

OverviewPin SchemaInput PinsOutput PinsInternals (data fields)BehaviorHow It WorksKey DependenciesAdditional MethodsC:_executionStarted()C:_executionStopped()C:init(mgr, ...)C:makeDot(offset, name)C:onClientEndMission()See Also