SoundSource
From Crumbled World Wiki
Inheritance
Constructor
| function | description |
|---|---|
| SoundNode() | |
| SoundNode(string fileName) |
Functions
| return | function | description |
|---|---|---|
| play(float soundLevel, bool repeat) | Play a sound. soundLevel [0,2] | |
| play(float soundLevel, bool repeat, float duration) | Play a sound. soundLevel [0,2], duration how long timer before sound level is 100% | |
| bool | isPlaying() | |
| bool | stop() | |
| bool | stopFadeOut(float fadeOutTime) | |
| setSoundPlayLimit(fint maxCount) | The number of time a sound can be played. | |
| setLocalSoundPLayLimit(fint maxCount) | ||
| setSoundRolloff(float roalloff) |