diff options
Diffstat (limited to 'client/audio/play_random.gd')
-rw-r--r-- | client/audio/play_random.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/audio/play_random.gd b/client/audio/play_random.gd index d702756d..efaad7d8 100644 --- a/client/audio/play_random.gd +++ b/client/audio/play_random.gd @@ -52,6 +52,10 @@ func play_random(): s.pitch_scale = randf_range(0.9, 1.1) s.play() +func stop_all(): + for s in sounds: + s.stop() + func start_autoplay(): autoplay = true play_random() |