fireball()
for(var/mob/enemy/Z in oview())
target = Z
if(target)
var/obj/weapon/arrow/I = new /obj/weapon/arrow(loc=usr.loc,dir=usr.dir)
walk_to(I,target,0,8)
spawn(100) del(I)
u
if(I.loc == target:loc)
del(I)
damage = rand(3,6)
target:HP -= damage
if(target:HP <= 0)
world<<"<b><SPAN STYLE='color: red'>[target] dies!</SPAN></b>"
var/obj/gold/G = new(target:loc)
G.amount = rand(1,30)
del(target)
else
sleep(5)
goto u
BTW, what can I use for detecting collisions with walls, when I can't set density to 1?