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
AI Debug DisplayCamera Mouse RaycastCommentDebug CylinderDebug LineDebug PrismDebug SphereDebug TextDisplay ValueDisplay FlowMulti GraphFlow ButtonLogMini GraphMulti FlowNumber SliderPause ExecutionRestart ProjectStop ProjectCategory Test (Test Dynamic)

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 Extensionsflowgraphnodesdebug

Multi Graph

- **Name:** `Multi Graph`

Overview

  • Name: Multi Graph
  • Category: repeat_instant
  • File: lua/ge/extensions/flowgraph/nodes/debug/drawGraph.lua
  • Pattern: Class-based (C = {}, returns _flowgraph_createNode(C))

Description

Draws multiple data lines in the same graph within the flowgraph editor. Supports a configurable number of input value pins, each plotted as a separate colored line using rainbow coloring. Graph auto-scales to data range.

Pin Schema

Dynamic Input Pins

Pins are created dynamically based on the count data property:

PinTypeDescription
value1..valueNnumberData values to plot (one line per pin)

Properties

PropertyDefaultDescription
count1Number of data input lines
scaleMin0Minimum Y-axis scale (auto-adjusts downward)
scaleMax1Maximum Y-axis scale (auto-adjusts upward)

Behavior

  • work() reads all connected number input pins and appends values to rolling data buffers (max 400 samples). Auto-scales min/max to data range.
  • drawMiddle() manages dynamic pin count and renders the multi-line plot via im.PlotMultiLines() in a 400×300 area.
  • updatePins() adds/removes input pins to match the configured count and resets graph data.
  • resetGraphData() rebuilds labels, rainbow colors, and data buffers from connected pins.
  • Graph data uses FIFO buffers - oldest samples are dropped when the 400-sample limit is reached.

Key APIs Used

  • im.PlotMultiLines() - multi-line plot rendering
  • rainbowColor() - generates distinct colors per line

Tags

#flowgraph #node #ge #debug #draw #graph #data


Additional Exports

init()

onLinkDeleted()

onLink()

onUnlink()

  • name - string - (see source)

  • icon - any - (see source)

  • description - string - (see source)

  • category - string - (see source)

  • pinSchema - table - (see source)

  • tags - table - (see source)


See Also

  • AI Debug Display - Related reference
  • Camera Mouse Raycast - Related reference
  • Comment - Related reference
  • FlowGraph Guide - Guide

Display Flow

- **Name:** `Display Flow`

Flow Button

- **Name:** `Flow Button`

On this page

OverviewDescriptionPin SchemaDynamic Input PinsPropertiesBehaviorKey APIs UsedTagsAdditional Exportsinit()onLinkDeleted()onLink()onUnlink()See Also