Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_spawner_horses_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var side = choose(1, 2)
4
switch side
5
{
6
    case 1:
7
        var horse1 = instance_create_depth(-40, 300, -100, obj_flowey_battle_gray_horse)
8
        var horse2 = instance_create_depth(700, 400, -100, obj_flowey_battle_gray_horse)
9
        break
10
    case 2:
11
        horse1 = instance_create_depth(700, 300, -100, obj_flowey_battle_gray_horse)
12
        horse2 = instance_create_depth(-40, 400, -100, obj_flowey_battle_gray_horse)
13
        break
14
}
15
16
var explosive_enemy = choose(horse1, horse2)
17
with (explosive_enemy)
18
    can_explode = true
19
instance_destroy()