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
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

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 Extensionsflowgraphnodesutil

Get Level Data (Flowgraph Node)

- **Node Name:** `Get Level Data`

Overview

  • Node Name: Get Level Data
  • Category: once_instant
  • File: extensions/flowgraph/nodes/util/getLevelData.lua

Gets information about the currently loaded level (name, directory, and full path).

Pin Schema

Output Pins

PinTypeDescription
devNamestringDeveloper name of the level (folder name)
directorystring (hidden)Directory path for the level
pathstring (hidden)Full path of the level's mission file

Internals

Key Methods

MethodDescription
work()Retrieves mission filename, extracts directory and dev name

How It Works

  1. Calls getMissionFilename() to get the full path of the current level's mission file.
  2. Uses path.split() to extract the directory portion.
  3. Parses the directory string with a pattern (.*/)(.*)/ to extract the level's folder name as devName.
  4. Outputs all three values as strings.

Usage Example

-- Get the current level name for conditional logic:
-- [Get Level Data] → devName → [String Compare] == "gridmap_v2"
--                                → true → [Enable GridMap Features]

-- Use the directory for file operations:
-- [Get Level Data] → directory → [Concat String] + "custom_data.json"
--                                → [Load File]

Key Dependencies

  • getMissionFilename() - engine function returning the current level's mission file path
  • path.split() - path utility for splitting file paths

See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get First Element of Table (Flowgraph Node)

- **Node Name:** `Get First Element of Table`

Get Map Objects IDs by DynField (Flowgraph Node)

- **Node Name:** `Get Map Objects IDs by DynField`

On this page

OverviewPin SchemaOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also