Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_revolver_battle_outline_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, c_white, image_alpha)
4
var target_pos = target_angle + 90
5
for (i = 0; i < target_max; i++)
6
{
7
    if ((target_pos - i * 360 / target_max) >= (-((360 / target_max))))
8
    {
9
        var x_offset = target_radius * image_xscale * (cos(degtorad(target_pos - i * 360 / target_max)))
10
        var y_offset = target_radius * image_xscale * (sin(degtorad(target_pos - i * 360 / target_max)))
11
        draw_sprite_ext(target_sprite, image_index, (x + x_offset), (y - y_offset), image_xscale, image_yscale, (target_angle - i * 360 / target_max), c_white, image_alpha)
12
    }
13
}
14
draw_sprite_ext(spr_wild_revolver_reticle, 0, x, y, image_xscale, image_yscale, 0, c_white, image_alpha)