API ReferenceGE Extensionsflowgraphnodesscene
Reset Prefab (Flowgraph Node)
- **Node Name:** `Reset Prefab`
Overview
- Node Name:
Reset Prefab - Category:
once_instant - File:
extensions/flowgraph/nodes/scene/resetPrefab.lua
Resets a prefab, restoring the transforms (position/rotation) of all objects within it to their original state.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
id | number | ID of the prefab to reset |
Behavior
workOnce()- Callsself.mgr.modules.prefab:restoreVehiclePositions(id)to reset all vehicles within the prefab to their spawn transforms.
How It Works
- The node fires once when triggered.
- Delegates to the flowgraph prefab module's
restoreVehiclePositions(), which iterates through all vehicles in the prefab and resets their positions and rotations.
Key Dependencies
self.mgr.modules.prefab:restoreVehiclePositions(id)- restores vehicle positions within a prefab
See Also
- Collection Marker (Flowgraph Node) - Related reference
- Custom Lua Command (Flowgraph Node) - Related reference
- Get Object Field (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide