Lua:Sounds

Lua:Sounds

From BeamNG

Contains Attributes and functions for controlling sounds.

File location: lua\vehicle\sounds.lua

Attributes


Member Functions

nil playSoundOnceAtNode (soundName, nodeID, volume)
nil playWheelSound (wheelID, soundName, vol, pitch)
nil update (dt)
nil addWheelSound (wheelID, wd, soundName)
obj createSFXSource (SFXname, nodeID)
nil init ()
nil destroy ()

Public Interface

  • update
  • playSoundOnceAtNode
  • destroy
  • init