SoundHandler: Difference between revisions

From Crumbled World Wiki
(Created page with "{{:SoundHandlerExampleCode}} ==Functions== {| class="wikitable" !|return !|function !|description |- | |playSound(string soundName, float maxSoundPerSecond) |Set a limit on how many sound can be started every second |- | |playSound(string soundName, float soundLevel, Vec3 position) |Set a limit on how many soun...")
 
No edit summary
 
Line 14: Line 14:
|
|
|[[SoundHandler:playSound(string soundName, float soundLevel, Vec3 position)|playSound]](string soundName, float soundLevel, [[Vec3]] position)
|[[SoundHandler:playSound(string soundName, float soundLevel, Vec3 position)|playSound]](string soundName, float soundLevel, [[Vec3]] position)
|Set a limit on how many sound can be started every second
|Play a sound by name, sound level and a global position
|-
|-
|
|
|[[SoundHandler:playSound(string soundName, float soundLevel, Vec3 position, bool looping)|playSound]](string soundName, float soundLevel, [[Vec3]] position, bool looping)
|[[SoundHandler:playSound(string soundName, float soundLevel, Vec3 position, bool looping)|playSound]](string soundName, float soundLevel, [[Vec3]] position, bool looping)
|Set a limit on how many sound can be started every second
|Play a sound by name, sound level and a global position
|-
|-
|}
|}

Latest revision as of 10:42, 4 January 2026

SoundHandlerExampleCode


Functions

return function description
playSound(string soundName, float maxSoundPerSecond) Set a limit on how many sound can be started every second
playSound(string soundName, float soundLevel, Vec3 position) Play a sound by name, sound level and a global position
playSound(string soundName, float soundLevel, Vec3 position, bool looping) Play a sound by name, sound level and a global position