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
Audio Channel Fade (Flowgraph Node)Audio Fade In (Flowgraph Node)Audio Fade Out (Flowgraph Node)Play Sound (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 Extensionsflowgraphnodesaudio

Audio Channel Fade (Flowgraph Node)

- **Node Name:** `Audio Channel Fade`

Overview

  • Node Name: Audio Channel Fade
  • Icon: audiotrack
  • Category: (default - no explicit category)
  • Tags: sound, audio, volume
  • File: extensions/flowgraph/nodes/audio/fade.lua

Fades the volume for a given audio channel with detailed controls for direction, duration, and volume range.

Pin Schema

Input Pins

PinTypeDefaultDescription
flowflow-Main flow input
fadeDownflow-Start fading down to silence
fadeUpflow-Start fading up to previous volume
durationnumber1Duration of fade in seconds
channelstringAudioChannelMasterAudio channel to fade
volumeMinnumber0(Hidden) Minimum volume (0–1)
volumeMaxnumber1(Hidden) Maximum volume (0–1)

Output Pins

PinTypeDescription
fadeDoneflowFires when fade completes
volumenumberCurrent volume value

Legacy Pin Mappings

  • fadeTime → duration, fadeIn → fadeDown, fadeOut → fadeUp

Behavior

  • work() - Requires flow to be active. Detects changes between fadeDown/fadeUp triggers and starts a timer-based interpolation.
    • fadeDown lerps from current volume to volumeMin.
    • fadeUp lerps from current volume to volumeMax (or channel's base volume).
    • Uses Engine.Audio.setChannelVolume() with override flag.
    • Sets fadeDone to true once the timer exceeds duration.
  • _executionStopped() - Restores the channel's override volume to its current actual value, then resets.

Notes

  • Uses self.mgr.dtReal for timer updates (real time, not sim time).
  • Manipulates channel volume via a self-timer for backwards compatibility.

See Also

  • Audio Fade In (Flowgraph Node) - Related reference
  • Audio Fade Out (Flowgraph Node) - Related reference
  • Play Sound (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Stars Active (Flowgraph Node)

- **Node Name:** `Stars Active`

Audio Fade In (Flowgraph Node)

- **Node Name:** `Audio Fade In`

On this page

OverviewPin SchemaInput PinsOutput PinsLegacy Pin MappingsBehaviorNotesSee Also