forked from GER-Space/Kerbal-Konstructs
-
Notifications
You must be signed in to change notification settings - Fork 11
StaticModule: AudioPlayer
Christian Bronk edited this page Mar 7, 2018
·
2 revisions
this module plays a soundfile (in a loop). For ambient sounds use the invisible "soundcube" static, as its borders will fit exactly the default values and the distances are scaled accordingly.
MODULE
{
// Mandatory, always the same
namespace = KerbalKonstructs
name = AudioPlayer
// Mandatory
audioClip = <name> // the sound file you want to play
// Optional
minDistance = 1 // the distance where the full volume is hearable
maxDistance = 500 // maximum distance until the sound is cut off
loop = true // should the sample be played in a loop
volume= 1 // Volume adjustment of the File
}