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
State Entry (Flowgraph State Node)State Exit (Flowgraph State Node)State Node (Flowgraph Node)Transition (Flowgraph Node)Get Transition Variables (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 Extensionsflowgraphnodesstates

Get Transition Variables (Flowgraph Node)

- **Node Name:** `Get Transition Variables`

Overview

  • Node Name: Get Transition Variables
  • Category: (default)
  • File: extensions/flowgraph/nodes/states/transitionStack.lua

Retrieves data that was passed through a state transition. Acts as the receiving end of data sent by a Transition node.

Pin Schema

Input Pins

PinTypeDescription
flowflowFlow pin (fixed)

Output Pins

PinTypeDescription
flowflowPasses through input flow

Custom output pins can be added to receive transition data (supports string, number, bool, any, table, vec3, quat, color).

Behavior

  • init() - Enables pin saving and custom output pins.
  • onStateStarted(state) - Captures the transitionStack from the state object when the state begins.
  • work() - Copies values from the captured stack to matching output pins by name. Passes flow through.
  • _executionStopped() - Clears the stored stack.
  • makePinTemplates() - Scans all transition and transitionStack nodes to build pin templates (shared logic with the Transition node).

Editor Display

  • drawMiddle() - Shows (Stack) with a tooltip of the stack contents when data is present, or (nil) when empty.

How It Works

  1. When a Transition node fires, it can pass data (e.g. score, player name) through the transition.
  2. The state manager stores this data in the transition stack.
  3. When the next state starts, onStateStarted captures the stack.
  4. Custom output pins with matching names receive the corresponding values.
-- In State A's sub-graph:
-- [Game Logic] → [Transition] (with custom pin "score" = 100)

-- In State B's sub-graph:
-- [TransitionStack] (with custom out pin "score") → [Use Score]
-- The "score" output will contain 100

Key Dependencies

  • self.mgr.states - State manager provides transition stack data
  • ui_flowgraph_editor - Tooltip display utility

Additional Methods

C:drawCustomProperties()

Custom ImGui drawing for the node's properties panel in the editor.

C:hideProperties()

Returns a set of property names to hide in the editor.


See Also

  • State Entry (Flowgraph State Node) - Related reference
  • State Exit (Flowgraph State Node) - Related reference
  • State Node (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Transition (Flowgraph Node)

- **Node Name:** `Transition`

Format String (Flowgraph Node)

- **Node Name:** `Format String`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorEditor DisplayHow It WorksKey DependenciesAdditional MethodsC:drawCustomProperties()C:hideProperties()See Also