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
Race Editor - Pacenotes TabRace Editor - Pathnodes TabRace Editor - Segments TabRace Editor - Start Positions TabRace Editor - Testing TabRace Editor - Time Trials TabRace Editor - Tools TabRace Editor - Track Layout Tab

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 ExtensionseditorraceEditor

Race Editor - Testing Tab

Sub-module for testing race paths with live race simulation, AI driving, and lap timing.

Sub-module for testing race paths with live race simulation, AI driving, and lap timing.


Overview

Opens a race test window that creates a live race instance from the current path. Supports manual driving, rolling starts, AI-driven tests (single or all vehicles), recovery, and displays lap times and event logs.


Class Methods

MethodSignatureDescription
C:init(raceEditor)Initializes with parent editor reference
C:setPath(path)Sets the race path for testing
C:setupRace()Creates a new race instance with debug draw enabled
C:startRace(vehIds, enableAi, rollingStart)Starts the race with specified options
C:draw(dt)State machine: setup → race → stopped
C:drawSetup()Renders lap count input, start buttons, AI test options
C:drawRace(dt)Renders stop/state/recover buttons and timing; dt is delta time
C:drawStopped()Renders restart button and final results
C:drawTimes()Renders lap/split times (toggle detailed view)
C:drawEventLog()Renders the race event log

Test Modes

ModeDescription
StartNormal standing start with player vehicle
Start RollingRolling start mode
AI Drive Test CurrentAI drives the player vehicle
AI Drive Test AllAI drives all nearby vehicles
Move All to StartTeleports all vehicles to starting positions

Notes

  • Deactivates the editor during race (editor.setEditorActive(false)).
  • Race uses gameplay/race/race module with useDebugDraw = true.
  • AI vehicles are started with 0.8 aggression factor.
  • "All Vehicles" test filters to vehicles within 100m of the default start position.

Module Variables

  • windowDescription (string) - Module variable.

Module Variables

  • windowDescription (string) - Module variable.

See Also

  • Race Editor - Pacenotes Tab - Related reference
  • Race Editor - Pathnodes Tab - Related reference
  • Race Editor - Segments Tab - Related reference
  • World Editor Guide - Guide

Race Editor - Start Positions Tab

Sub-module for placing and editing vehicle start/recovery positions in race paths.

Race Editor - Time Trials Tab

Sub-module for editing time trial metadata - name, description, authors, difficulty, prefabs, and preview images.

On this page

OverviewClass MethodsTest ModesNotesModule VariablesModule VariablesSee Also