API ReferenceGE Extensionsflowgraphnodesmission
Clear Lights Drag Race (Flowgraph Node)
- **Node Name:** `Clear Lights Dragrace`
Overview
- Node Name:
Clear Lights Dragrace - Category:
repeat_instant - File:
extensions/flowgraph/nodes/mission/clearLightsDragRace.lua
Clears (hides) all drag race lights and digit displays when a mission is finished or abandoned.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow for this node |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Outflow for this node |
Internals
Light Objects Found by Name
Stage Lights:
Prestagelight_l,Prestagelight_rStagelight_l,Stagelight_r
Countdown Lights:
Amberlight1_R/L,Amberlight2_R/L,Amberlight3_R/LGreenlight_R/LRedlight_R/L
Digit Displays:
display_time_1-5_l/rdisplay_speed_1-5_l/r
How It Works
initLights()finds all light scene objects by name and hides every one of them (stage lights + countdown lights).clearDigits()finds all 20 digit display objects and hides them.- Both operations run every frame when flow is active (designed to be triggered once on mission cleanup).
Lua Example
-- Typical flowgraph connection:
-- Mission "abandoned" or "completed" flow → this node's flow in
-- Ensures the drag strip is visually reset for the next raceKey Dependencies
scenetree.findObject()- locates light and display objects by name_flowgraph_createNode()- standard flowgraph node registration
Additional Methods
C:_executionStarted()
Called when graph execution starts. Used for initialization/reset.
C:work()
Main work function called each frame/tick when the node is active.
See Also
- ARunForLife (Flowgraph Node) - Related reference
- Update Display Drag Race (Flowgraph Node) - Related reference
- Countdown Lights Controller (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide