API ReferenceGE Extensionsflowgraphnodesrecording
Start Auto Replay (Flowgraph Node)
- **Node Name:** `Start Auto Replay`
Overview
- Node Name:
Start Auto Replay - File:
extensions/flowgraph/nodes/recording/startAutoReplay.lua
Stops any current recording and starts a new one using the mission replay module. Also starts AI recording and replay if the AI recording module is available.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
startNewRec | flow (impulse) | Stops the current recording and starts a new one |
Output Pins
None.
Internals
- Uses
self.mgr.modules.missionReplayfor replay management. - Uses
self.mgr.modules.aiRecording(optional) for AI recording/replay.
How It Works
- When the impulse fires, calls
missionReplay:startNewRec()to cycle the recording. - If
aiRecordingmodule exists, also calls:aiRecording:startAiRecording()- begins recording AI vehicle data.aiRecording:startAiReplay()- begins AI replay playback.
Lua Code Example
-- At mission start or attempt restart:
-- missionBegin → startAutoReplay.startNewRec
-- This automatically manages replay recording for the mission system.Key Dependencies
self.mgr.modules.missionReplay-startNewRec()self.mgr.modules.aiRecording- optional AI recording module
Additional Methods
C:work()
Main work function called each frame/tick when the node is active.
See Also
- Play Replay (Flowgraph Node) - Related reference
- Record Camera (Flowgraph Node) - Related reference
- Record Replay (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide