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

Split (Flowgraph Node)

- **Node Name:** `Split`

Overview

  • Node Name: Split
  • Category: simple
  • File: extensions/flowgraph/nodes/math/vector/split.lua

Splits a vector, color, or quaternion into its individual numeric components (max size 4).

Pin Schema

Input Pins

PinTypeDescription
valuevec3 / color / quatA vector, color, or quaternion to split

Output Pins

PinTypeDescription
xnumberFirst element
ynumberSecond element
znumberThird element
wnumberFourth element

How It Works

  1. The input value is treated as an indexed table.
  2. Each element is extracted by index: table[1] → x, table[2] → y, table[3] → z, table[4] → w.
  3. If the input is nil, all outputs are nil.
  4. For vec3 inputs, w will be nil. For quat inputs, all four outputs are populated.

This is the counterpart to the Merge node.

Lua Example

-- Extract height from a position:
-- value = vehicle position (vec3)
-- z output → height value for altitude check

-- Extract quaternion components:
-- value = vehicle rotation (quat)
-- x, y, z, w → individual quaternion components

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

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

Merge (Flowgraph Node)

- **Node Name:** `Merge`

ARunForLife (Flowgraph Node)

- **Node Name:** `ARunForLife`

On this page

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