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

Play Sound (Flowgraph Node)

- **Node Name:** `Play Sound`

Overview

  • Node Name: Play Sound
  • Icon: audiotrack
  • Category: dynamic_p_duration
  • Dynamic Mode: repeat
  • Tags: sound, audio, volume
  • File: extensions/flowgraph/nodes/audio/playOnce.lua

Plays an audio sample once or repeatedly.

Pin Schema

Input Pins

PinTypeDefaultDescription
filestringevent:UI_CheckpointSource for audio sample (event or file path)
channelstring(hidden)Audio channel to play on
volumenumber1(Hidden, hardcoded) Volume (0–1)
pitchnumber1(Hidden, hardcoded) Pitch multiplier
fadeInTimenumber-1(Hidden, hardcoded) Fade in time
fadeOutTimenumber-1(Hidden, hardcoded) Fade out time
uniqueboolfalse(Hidden, hardcoded) Unique sound flag

Legacy Pin Mappings

  • source → file

Behavior

  • postInit() - Configures file pin to allow .prefab.json files. Sets volume pin to a slider gizmo (0–1 float range).
  • workOnce() - Calls playSound() once on first trigger.
  • work() - In repeat dynamic mode, calls playSound() every frame while active.
  • playSound() - Assembles audio data (volume, pitch, fade times, unique flag, source, channel) and calls Engine.Audio.playOnce(channel, source, data). Defaults channel to AudioGui.

Notes

  • Despite the filename playOnce.lua, the node supports repeat mode via dynamicMode.
  • Default audio channel is AudioGui, not AudioChannelMaster.

See Also

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

Audio Fade Out (Flowgraph Node)

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

Add To Inventory (Flowgraph Node)

- **Node Name:** `Add To Inventory`

On this page

OverviewPin SchemaInput PinsLegacy Pin MappingsBehaviorNotesSee Also