Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_asset_steamworks_pipe_2_Other_76

(view raw script w/o annotations or w/e)
1
if (layer_instance_get_instance(ds_map_find_value(event_data, "element_id")) == id && ds_map_find_value(event_data, "event_type") == "sprite event")
2
{
3
    switch ds_map_find_value(event_data, "message")
4
    {
5
        case "steam_sound":
6
            var steam_sound = audio_play_sound(snd_pinkgoo_steam, 1, 0)
7
            audio_sound_pitch(steam_sound, random_range(0.6, 0.8))
8
            break
9
    }
10
11
}