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
And (Flowgraph Node)Boolean Expression (Flowgraph Node)Branch (Flowgraph Node)Bundle (Flowgraph Node)Chainflow Branch (Flowgraph Node)Compare (Flowgraph Node)Edge Detector (Flowgraph Node)Flow Switch (Flowgraph Node)Frame Delay (Flowgraph Node)Once (Flowgraph Node)Flow Interval / Rate Limit (Flowgraph Node)Select (Flowgraph Node)Sequencer (Flowgraph Node)Switch Case (Flowgraph Node)Timed Trigger (Flowgraph Node)Wait (Flowgraph Node)XOR (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 Extensionsflowgraphnodeslogic

Chainflow Branch (Flowgraph Node)

- **Node Name:** `Chainflow Branch`

Overview

  • Node Name: Chainflow Branch
  • Category: logic
  • File: extensions/flowgraph/nodes/logic/chainFlowBranch.lua

Routes chain-flow to either True or False output based on a boolean condition. Similar to the standard Branch node but operates exclusively with chain flow pins.

Pin Schema

Input Pins

PinTypeDescription
flowflowChain flow inflow (chainFlow = true)
conditionboolThe condition to check

Output Pins

PinTypeDescription
TrueflowChain flow when condition is true (chainFlow = true)
FalseflowChain flow when condition is false (chainFlow = true)

Behavior

  • work() - When chain flow is active, routes to True or False based on the condition. When no flow, both outputs are false.

How It Works

Chain flow is a special flow type in BeamNG flowgraphs that ensures sequential execution order. This node provides conditional branching within a chain flow context, guaranteeing that downstream nodes execute in the correct order.

Unlike the regular Branch node, this one has no passthrough flow output - it only outputs chain flow on True or False.

Example Usage

-- Used in chain-flow contexts where execution order matters
-- Connect chain flow input and a boolean condition
-- Only one of True/False will receive chain flow

-- Equivalent logic:
if condition then
  -- True chain continues
else
  -- False chain continues
end

See Also

  • And (Flowgraph Node) - Related reference
  • Boolean Expression (Flowgraph Node) - Related reference
  • Branch (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Bundle (Flowgraph Node)

- **Node Name:** `Bundle`

Compare (Flowgraph Node)

- **Node Name:** `Compare`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksExample UsageSee Also