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

Script AI Manager

Editor window for managing scriptAI recordings across all vehicles - supports recording, playback, looping, save/load of track files, and real-time progress visualization.

Editor window for managing scriptAI recordings across all vehicles - supports recording, playback, looping, save/load of track files, and real-time progress visualization.


Public API

FunctionSignatureDescription
M.onEditorGui()Main GUI - vehicle list with record/play/stop controls and progress bars
M.onEditorInitialized()Registers "Script AI Manager" window under Gameplay menu
M.onWindowMenuItem()Shows the manager window
M.onVehicleSwitched(oldVehicle, newVehicle, player)Updates active vehicle tracking
M.onDrawDebug(lastDebugFocusPos, dtReal, dtSim, dtRaw)Renders recorded paths as 3D debug lines
M.onVehicleSubmitRecording(vehId, data)Callback receiving recorded data from vehicle Lua
M.onVehicleSubmitInfo(vehId, data)Callback receiving playback status from vehicle Lua
M.onSerialize / M.onDeserialized() / (data)Session persistence for recordings and vehicle states
M.getCurrentRecordings()Returns the current recordings table

Per-Vehicle Controls

ControlDescription
RecordStarts recording vehicle movement via ai.startRecording()
StopStops recording or playback
PlayPlays back a recording via ai.startFollowing()
RestartRestarts playback from the beginning
SaveSaves recording to .track.json file
LoadLoads recording from disk
MoreLoop toggle, debug toggle, start offset, start delay, reset

Track File Format

{
  levelName = "west_coast_usa",
  vehicle = "pickup",
  recording = { path = { ... }, ... },
  version = 2,
  startDelay = 0.0,
  timeOffset = 0.0,
}

Progress Visualization

  • Real-time progress bar with two layers:
    • Green: wall-clock time progress
    • White: script time progress
  • Sleeping state shown in red (during start delay)
  • Per-vehicle debug path rendering with rainbow colors

Notes

  • Track files stored in /replays/scriptai/tracks/
  • Supports Play All and Stop All for synchronized multi-vehicle playback
  • Fast-forward mode uses be:setPhysicsSpeedFactor(2)
  • Debug path rendering uses squared distance culling (100-200m based on camera distance)

See Also

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

Script AI Editor

Full-featured editor for creating, editing, and executing scriptAI vehicle trajectories and camera paths - supports time-based and speed-based scripts, spline interpolation, drawing mode, recording, u

Sensor Configuration Editor

Editor for configuring vehicle sensor setups - supports Camera, LiDAR, Ultrasonic, RADAR, IMU, GPS, Ideal RADAR, Roads, Powertrain, and Mesh sensors with interactive placement, gizmo-based positioning

On this page

Public APIPer-Vehicle ControlsTrack File FormatProgress VisualizationNotesSee Also