Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_goosic_speaker_generator_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
audio_pos = choose("left", "right")
4
spawn_offset_x = 0
5
spawn_interval = 5
6
if (audio_pos == "right")
7
{
8
    speaker_right.image_speed = 1
9
    spawn_offset_dir = 1
10
}
11
else
12
{
13
    speaker_left.image_speed = 1
14
    spawn_offset_dir = -1
15
}
16
alarm[3] = 15
alarm[3]

spawn_notes = true alarm[1] = attack_duration