RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager

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 Extensionseditor

Drive Path Editor

Main editor tool for creating and managing AI drive path splines. Supports **Free Mode** (arbitrary nodes on terrain) and **NavGraph Mode** (waypoint-to-waypoint paths on the navigation graph). Featur

Main editor tool for creating and managing AI drive path splines. Supports Free Mode (arbitrary nodes on terrain) and NavGraph Mode (waypoint-to-waypoint paths on the navigation graph). Features vehicle linking, playback, recording, session save/load, bitmap import, and undo/redo.


Public API

FunctionSignatureDescription
M.setSelectedSplineIdx(idx)Sets the selected spline index
M.setSelectedNodeIdx(idx)Sets the selected node index
M.onSerialize() → tableSerializes all drive path splines for persistence
M.onDeserialized(data)Restores splines, recomputes maps, relinks vehicles
M.onEditorGui()Main editor GUI + rendering callback
M.onEditorInitialized()Registers edit mode, window, and icon
M.onClientEndMission()Removes all splines on map exit

Spline Properties

PropertyTypeRangeDescription
delayTimefloat0–60sStarting delay before AI begins
routeSpeedfloat0–100 m/sRoute speed (set or limit mode)
aggressionfloat0.3–1.0AI aggression level
numLapsint1–10Number of laps (loop mode only)
isDriveInLanebool-AI drives in lane
isAvoidCarsbool-AI avoids other cars
isLoopbool-Spline forms a closed loop
startingNodeint1–NNode where AI starts

Key Features

  • Spline Management: Add, remove, split, flip, join, simplify splines
  • Vehicle Linking: Link/unlink splines to scene vehicles for AI playback
  • Playback: Play all linked vehicle/spline pairs simultaneously with delay
  • Recording: Record vehicle path while driving, auto-simplify with RDP
  • Bitmap Import: Import splines from PNG bitmap masks via skeleton tracing
  • Session Save/Load: JSON session files with map validation
  • Undo/Redo: Full history support for all spline operations

Modes

ModeNode SourceRendering
Free ModeArbitrary 3D positions on terrainCatmull-Rom surface ribbon
NavGraph ModeNavigation graph waypointsGraph path + surface ribbon

Usage Example

-- Activated via editor mode icon (traffic cone)
-- Or programmatically:
editor.selectEditMode(editor.editModes.drivePathSplineEditMode)

-- Session is auto-serialized/deserialized with editor state

Dependencies

ModulePurpose
editor/drivePathEditor/splineMgrCore spline data management
editor/drivePathEditor/playbackAI playback orchestration
editor/drivePathEditor/recordVehicle path recording
editor/toolUtilities/splineInputMouse/keyboard spline editing
editor/toolUtilities/renderSpline rendering (ribbons, surfaces)
editor/toolUtilities/skeletonBitmap path tracing
editor/toolUtilities/rdpRamer-Douglas-Peucker simplification
editor/toolUtilities/styleImGui color themes

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

Drift Data Editor

Full-featured editor for drift gameplay data. Two tabs: **Drift Stunt Zones** (donut, driftThrough, hitPole zone placement with scoring) and **Drift Spots** (freeroam drift spot management with spatia

Dynamic Decals Tool (Vehicle Livery Creator)

Editor extension providing the Vehicle Livery Creator - a comprehensive tool for painting decals, brush strokes, paths, and fills onto vehicle surfaces in real-time.

On this page

Public APISpline PropertiesKey FeaturesModesUsage ExampleDependenciesSee Also