1 | if (ds_map_find_value(event_data, "event_type") == "sprite event") |
2 | { |
3 | switch ds_map_find_value(event_data, "message") |
4 | { |
5 | case "alarm_beep": |
6 | audio_stop_sound(snd_bullet_warning) |
7 | audio_play_sound(snd_bullet_warning, 1, 0) |
8 | break |
9 | } |
10 | |
11 | } |