ID:144082
 
Code:
    proc
shoot(atom/A)
if(src.ammo>=1)
src << "<font color = red>Reload!</font>"
return
else
var/obj/bullet/B = new
B.loc = src.loc
var/C = get_dir(B,A)
walk(B,C,1)
sleep(15)
del(B)


Problem description:
Yeah. I guess it should work. All it does is make the bullet walk south. What am I doing wrong?

    proc/shoot(atom/A)
if(src.ammo>=1)
src << "<font color = red>Reload!</font>"
return
else
var/obj/B=new/obj/bullet(src.loc)
B.dir=get_dir(B,A)
walk(B,B.dir,1)
spawn(15)if(src)del(B)


Try now!!!

- Dark Emrald
How do you call the proc? Maybe A is to the south of src. Or maybe you are targetting the wrong atom.