Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_pulse_energy_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
battle_box = 3154
4
attack_interval = 25
5
attack_number = 12
6
alarm[0] = 15
alarm[0]

if live_call() return global.live_result; var dir = irandom_range(0, 359) var distance = 140 instance_create_depth((battle_box.x + (lengthdir_x(distance, dir))), (battle_box.y + (lengthdir_y(distance, dir))), -100, obj_battle_enemy_attack_axis_energy_ball_pulse) alarm[0] = attack_interval attack_number-- if (attack_number <= 0) instance_destroy()
7
obj_heart_battle_fighting_parent.movement_mode = 2