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
Accumulator (Flowgraph Node)Ease (Flowgraph Node)Increaser (Flowgraph Node)Expression (Flowgraph Node)
Merge (Flowgraph Node)Split (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 Extensionsflowgraphnodesmathvector

Merge (Flowgraph Node)

- **Node Name:** `Merge`

Overview

  • Node Name: Merge
  • Category: simple
  • File: extensions/flowgraph/nodes/math/vector/merge.lua

Merges up to 4 individual number components into a single table (vec3, color, or quat).

Pin Schema

Input Pins

PinTypeDescription
xnumberFirst element
ynumberSecond element
znumberThird element
wnumberFourth element

Output Pins

PinTypeDescription
valuevec3 / color / quatAll elements packed into a table

How It Works

  1. Each frame, the node reads the four input pins (x, y, z, w).
  2. It packs them into a Lua table: {x, y, z, w}.
  3. Nil inputs remain nil in the table.
  4. The output type is polymorphic - it can be connected to vec3, color, or quat pins.

This is the counterpart to the Split node.

Lua Example

-- Build a position from separate coordinates:
-- x = vehicle X position
-- y = vehicle Y position  
-- z = terrain height
-- value output → vec3 position for teleport

-- Build a color:
-- x = red (0-1), y = green, z = blue, w = alpha
-- value output → color for UI element

Key Dependencies

  • _flowgraph_createNode() - standard flowgraph node registration

Additional Methods

C:init()

Initializes the node, setting up pins and default properties.

C:work()

Main work function called each frame/tick when the node is active.


See Also

  • Split (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Spring Smoother (Flowgraph Node)

- **Node Name:** `Spring Smoother`

Split (Flowgraph Node)

- **Node Name:** `Split`

On this page

OverviewPin SchemaInput PinsOutput PinsHow It WorksLua ExampleKey DependenciesAdditional MethodsC:init()C:work()See Also