Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_take_aim_target_alt_Step_0

(view raw script w/o annotations or w/e)
1
if (aim_target == noone)
2
    return;
3
x = aim_target.x
4
y = aim_target.y
5
if (target_radius_deg > 0)
6
    target_radius_deg -= 4
7
else
8
{
9
    instance_create(x, y, obj_battle_enemy_attack_starlo_take_aim_shot)
10
    instance_create(x, y, obj_battle_enemy_attack_starlo_take_aim_shot_collider)
11
    instance_destroy()
12
    instance_destroy(aim_target)
13
}
14
target_radius_current = dsin(target_radius_deg)
15
if (target_draw_alpha < 1)
16
    target_draw_alpha += 0.25