Zrób to tak
if distance_to_object (o_hero)<300
{
if !collision_line(x,y,o_hero.x,o_hero.y,o_Wall,true,true) && fire_ready
if !collision_line(x,y,o_hero.x,o_hero.y,o_Wall2,true,true) && fire_ready
{
speed = 0;
direction = point_direction(x,y,o_hero.x,o_hero.y);
/* STRZELANIE */
bul = instance_create(x,y,o_bullet_e);
bul.direction = point_direction(x,y,o_hero.x,o_hero.y);
bul.speed = 16;
bul.creator = object_index;
bul.pwr = 1;
alarm[1] = room_speed*0.5;
fire_ready = false;
}
}