Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_pulse_energy_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var dir = irandom_range(0, 359)
4
var distance = 140
5
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)
6
alarm[0] = attack_interval
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
attack_number--
8
if (attack_number <= 0)
9
    instance_destroy()