mob
proc
shoot()
if(src.key == "Xkirby2")
var/obj/H = new/obj/bullet
else if(src.key == "KirbyRules")
var/obj/H = new/obj/Bullet
if(src.fired == 0)
src.fired = 1
spawn(15)
src.fired = 0
H.dir = src.dir
H.loc = src.loc
while(H)
step(H,H.dir)
var/turf/T = H.loc
if(T.density == 1)
del(H)
break
for(var/mob/M as mob in T)
if(M == src)
continue
del(H)
sleep(1)
Problem description:
I didn't make this, I found it in a library. I was trying to change it to fit my needs but I mess it up....I think I indented wrong... Can someone fix this code for me please? I don't know how...