1 | if (irandom(sound_probability) == 1) |
2 | { |
3 | for (var sound_to_play = choose(322, 323, 324); sound_to_play == sound_last; sound_to_play = choose(322, 323, 324)) |
4 | { |
5 | } |
6 | audio_sound_gain(sound_to_play, 0.05, 0) |
7 | audio_sound_pitch(sound_to_play, 0.45) |
8 | audio_play_sound(sound_to_play, 1, 0) |
9 | sound_last = sound_to_play |
10 | sound_probability = 800 |
11 | } |
12 | if (sound_probability > 350) |
13 | sound_probability-- |