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
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 Extensionsflowgraphnodesvehicle

Timeline Replay

- **Node Name:** `Timeline Replay`

Overview

  • Node Name: Timeline Replay
  • Category: (duration behaviour)
  • File: extensions/flowgraph/nodes/vehicle/replay.lua

Plays a vehicle replay file at a specific time within a flowgraph timeline. This is a prototypical node and may not work correctly in all cases.

Todo: Prototypical node, not working correctly in all cases.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node
filenamestringReplay filename to load
vehIdnumberID of vehicle to replay

Legacy Pin Mapping

  • in.vehID → vehId

Internals

Key Methods

MethodDescription
init()Sets up timeline (5-10 range), initializes replayName
work()Checks startReplay/stopReplay flags and loads/stops replay accordingly
_executionStopped()Stops any active replay via core_replay.stop()
onTimelineBegin(globalTime, localTime)Sets the startReplay flag
onTimelineEnd(globalTime, localTime)Sets the stopReplay flag
drawCustomProperties()UI for loading and selecting replay files
drawMiddle(builder, style)Displays replay name and flag states in the node

Custom Properties UI

The node provides an ImGui interface to:

  1. Load available replays via core_replay.getRecordings().
  2. Select a replay from a dropdown combo box.
  3. The selected replay filename is stored in self.replayName.

How It Works

  1. The node uses the flowgraph timeline system (_setupTimeline(5, 10)).
  2. When the timeline begins, onTimelineBegin() sets a startReplay flag.
  3. On the next work() tick, the replay is loaded via core_replay.loadFile() using either the pin filename or the UI-selected replay name.
  4. When the timeline ends, onTimelineEnd() sets a stopReplay flag.
  5. On the next tick, core_replay.stop() halts the replay.
  6. If execution is stopped entirely, the replay is also stopped.

Usage Example

-- Load and play a replay file:
core_replay.loadFile("/path/to/replay.rpl")

-- Stop replay:
core_replay.stop()

-- Get available recordings:
local recordings = core_replay.getRecordings()
for _, r in ipairs(recordings) do
  print(r.filename)
end

Key Dependencies

  • core_replay.loadFile(path) - loads and plays a replay file
  • core_replay.stop() - stops the active replay
  • core_replay.getRecordings() - lists available replay recordings
  • Flowgraph timeline system (_setupTimeline, onTimelineBegin, onTimelineEnd)

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Remove Vehicle

- **Node Name:** `Remove Vehicle`

Set Vehicle Active

- **Node Name:** `Set Vehicle Active`

On this page

OverviewPin SchemaInput PinsLegacy Pin MappingInternalsKey MethodsCustom Properties UIHow It WorksUsage ExampleKey DependenciesSee Also