API ReferenceGE Extensionsflowgraphnodesrecording
Play Replay (Flowgraph Node)
- **Node Name:** `Play Replay`
Overview
- Node Name:
Play Replay - Category:
repeat_instant - File:
extensions/flowgraph/nodes/recording/playReplay.lua
Plays back a previously recorded replay file.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
filename | string | The replay filename (resolved relative to the flowgraph path) |
play | flow (impulse) | Triggers replay playback |
Output Pins
None.
Internals
- Uses
self.mgr:getRelativeAbsolutePath()to resolve the filename relative to the flowgraph's location. - Calls
core_replay.loadFile(file)to begin playback.
How It Works
- When the
playimpulse fires, resolves the filename to an absolute path. - If resolution succeeds, loads the replay file via
core_replay.loadFile(). - Continues to check each frame (repeat_instant category) but only acts on the impulse.
Lua Code Example
-- Flowgraph wiring:
-- button/trigger → playReplay.play
-- playReplay.filename = "myReplay.rpl"
-- The replay file is resolved relative to the flowgraph's directory.Key Dependencies
core_replay- replay system (loadFile)self.mgr:getRelativeAbsolutePath()- path resolution
Additional Methods
C:work()
Main work function called each frame/tick when the node is active.
See Also
- Record Camera (Flowgraph Node) - Related reference
- Record Replay (Flowgraph Node) - Related reference
- Start Auto Replay (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide