API ReferenceGE Extensionsflowgraphnodesaudio
Audio Fade Out (Flowgraph Node)
- **Node Name:** `Audio Fade Out`
Overview
- Node Name:
Audio Fade Out - Icon:
audiotrack - Category:
once_f_duration - Tags:
sound,audio,volume - File:
extensions/flowgraph/nodes/audio/fadeOut.lua
Fades the global audio volume down to silence.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
duration | number | 1 | Duration of fade in seconds |
Output Pins
Standard once_f_duration pins (flow, started, finished).
Behavior
workOnce()- Sets SFX global parameterg_FadeTimeMStoduration * 1000andg_GameLoadingto1(loading = audio fades out). Sets duration state tostarted.work()- Tracks elapsed time viaself.timerusingself.mgr.dtReal. Sets duration state tofinishedwhen timer exceeds duration.reset()- Resets timer, duration state, and SFX parameters to defaults.
Notes
- Mirror of
fadeIn.lua- only difference isg_GameLoading = 1instead of0. - Uses
SFXSystem.setGlobalParameter()for engine-level global volume control.
See Also
- Audio Channel Fade (Flowgraph Node) - Related reference
- Audio Fade In (Flowgraph Node) - Related reference
- Play Sound (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide