RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Medal / Auto Medal (Flowgraph Node)Clear Messages (Flowgraph Node)Context Translation (Flowgraph Node)ConvertUnit (Flowgraph Node)Set UI Timer / Corner Timer (Flowgraph Node)Custom Button TEST (Flowgraph Node)Custom UI Layout (Flowgraph Node)End Screen (Flowgraph Node)End Stats (Flowgraph Node)Fade From Black (Flowgraph Node)Fade Sequence (Flowgraph Node)Fade To Black (Flowgraph Node)Flash Message (Flowgraph Node)Generic Mission Text (Flowgraph Node)Get Gamestate (Flowgraph Node)Show Editor (Flowgraph Node)Hide Game UI (Flowgraph Node)Message (Flowgraph Node)Mission End Screen (Flowgraph Node)Popup (Flowgraph Node)Monologue (Flowgraph Node)Multi Description (Flowgraph Node)On Bigmap Poi (Flowgraph Node)On Bigmap State Change (Flowgraph Node)Set UI Race Checkpoints (Flowgraph Node)Set UI Race Laps (Flowgraph Node)Set UI Race Recovery (Flowgraph Node)RT Message (Flowgraph Node)Select Buttons (Flowgraph Node)Set UI Layout (Flowgraph Node)Show Apps (Flowgraph Node)Show Monitor (Flowgraph Node)Start Screen (Flowgraph Node)Clear Goals (Flowgraph Node)Tasklist Message (Flowgraph Node)Tasklist Task (Flowgraph Node)Three Element Select (Flowgraph Node)Vehicle Selector (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesui

Fade Sequence (Flowgraph Node)

- **Node Name:** `Fade Sequence`

Overview

  • Node Name: Fade Sequence
  • Category: once_f_duration
  • File: extensions/flowgraph/nodes/ui/fadeSequence.lua

Fades the screen to black, pauses, then fades back from black. Provides a faded impulse when the screen is fully black. Obsolete - use Fade To Black and Fade From Black nodes instead.

Pin Schema

Input Pins

PinTypeDefaultDescription
startDurationnumber0.75Duration of fade to black (hardcoded)
pauseDurationnumber0Duration of pause at black (hardcoded)
endDurationnumber0.75Duration of fade from black (hardcoded)

Output Pins

PinTypeDescription
fadedflow (impulse)Fires once when screen reaches full black
completeflowFires when entire sequence finishes (inherited)

Internals

Key Methods

MethodDescription
workOnce()Starts the fade sequence via ui_fadeScreen.fadeSequence()
work()Manages the faded impulse - ensures it only fires for one frame
onScreenFadeState(state)State 1 = fully black (sets faded), state 3 = sequence complete
_executionStopped()Resets all state
onNodeReset()Resets all state

How It Works

  1. workOnce() calls ui_fadeScreen.fadeSequence(startDuration, pauseDuration, endDuration).
  2. When the screen reaches full black, onScreenFadeState(1) fires and sets faded output to true.
  3. The work() method ensures faded is an impulse (true for exactly one frame).
  4. After the pause and fade-back complete, onScreenFadeState(3) fires and sets duration to finished.

Usage Example

-- Fade to black over 1s, hold for 0.5s, fade back over 1s:
ui_fadeScreen.fadeSequence(1, 0.5, 1)

-- In a flowgraph, connect:
-- [Trigger] → [Fade Sequence] → (faded) → [Do something while screen is black]
--                              → (complete) → [Continue after fade]

Key Dependencies

  • ui_fadeScreen.fadeSequence() - performs the three-phase fade
  • onScreenFadeState hook - states: 1 = fully black, 3 = complete

See Also

  • Medal / Auto Medal (Flowgraph Node) - Related reference
  • Clear Messages (Flowgraph Node) - Related reference
  • Context Translation (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Fade From Black (Flowgraph Node)

- **Node Name:** `Fade From Black`

Fade To Black (Flowgraph Node)

- **Node Name:** `Fade To Black`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also