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
Play Replay (Flowgraph Node)Record Camera (Flowgraph Node)Record Replay (Flowgraph Node)Start Auto Replay (Flowgraph Node)Stop Auto Replay (Flowgraph Node)Stop Replay (Flowgraph Node)

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 Extensionsflowgraphnodesrecording

Record Replay (Flowgraph Node)

- **Node Name:** `Record Replay`

Overview

  • Node Name: Record Replay
  • Category: repeat_f_duration
  • File: extensions/flowgraph/nodes/recording/recordReplay.lua

Records a replay of the current vehicle. Uses the built-in replay system to capture and save vehicle state.

Pin Schema

Input Pins

PinTypeDescription
startflow (impulse)Start recording
stopflow (impulse)Stop recording and save to file
prefixstringPrefix for the generated filename

Output Pins

PinTypeDescription
filenamestringThe generated replay filename

Internals

  • self.durationState - 'inactive' → 'started' → 'finished'.
  • onReplayStateChanged(state) - callback that captures the loaded file name when the replay system enters 'recording' state.
  • saveFile() - placeholder that generates a filename from the prefix and recording count (currently unused in the work flow).

How It Works

  1. Starts in inactive state.
  2. When start impulse fires, calls core_replay.toggleRecording(false) to begin recording.
  3. The onReplayStateChanged callback captures the output filename.
  4. When stop impulse fires, calls core_replay.toggleRecording(false) again to stop and save.
  5. The drawMiddle callback shows the current duration state in the editor.

Lua Code Example

-- Record a vehicle replay:
-- missionStart → recordReplay.start
-- missionEnd → recordReplay.stop
-- recordReplay.filename → playReplay.filename (for playback)

Key Dependencies

  • core_replay - replay system (toggleRecording, getRecordings)

Additional Methods

C:_executionStarted()

Called when graph execution starts. Used for initialization/reset.

C:init()

Initializes the node, setting up pins and default properties.


See Also

  • Play Replay (Flowgraph Node) - Related reference
  • Record Camera (Flowgraph Node) - Related reference
  • Start Auto Replay (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Record Camera (Flowgraph Node)

- **Node Name:** `Record Camera`

Start Auto Replay (Flowgraph Node)

- **Node Name:** `Start Auto Replay`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:_executionStarted()C:init()See Also