Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_transformation_beam_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
laser_width = 5
4
draw_alpha = 0
5
dir_speed = 0
6
dir_speed_max = 6
7
direction = irandom_range(0, 360)
8
point_x_1 = x
9
point_y_1 = y
10
point_x_2 = x + (lengthdir_x(1200, (direction - laser_width)))
11
point_y_2 = y + (lengthdir_y(1200, (direction - laser_width)))
12
point_x_3 = x + (lengthdir_x(1200, (direction + laser_width)))
13
point_y_3 = y + (lengthdir_y(1200, (direction + laser_width)))
14
scene = 0
15
alarm[0] = 20
alarm[0]

if live_call() return global.live_result; scene = 1