API ReferenceGE Extensionsflowgraphnodesrecording
Stop Replay (Flowgraph Node)
- **Node Name:** `Stop Replay`
Overview
- Node Name:
Stop Replay - Category:
repeat_instant - File:
extensions/flowgraph/nodes/recording/stopReplay.lua
Stops the currently playing replay if one is active.
Pin Schema
Input Pins
None (no explicit pins; uses default flow).
Output Pins
None.
Internals
- Checks
core_replay.state.stateeach frame. - Only calls
core_replay.stop()when the state is"playback".
How It Works
- Every frame, checks if a replay is currently in playback state.
- If so, stops it via
core_replay.stop(). - Since the category is
repeat_instant, this runs every frame while active - it will stop playback as soon as it detects it.
Lua Code Example
-- Stop replay when a condition is met:
-- trigger/button → stopReplay (via flow connection)
-- Automatically halts any active replay playback.Key Dependencies
core_replay- replay system (state,stop())
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