mob
verb
Shoot()
if(usr.fired == 0)
var/obj/Bullet/O = new /obj/Bullet(src.loc)
step(O,usr.dir)
usr.fired = 1
spawn(15)
usr.fired = 0
del(O)
else
return
proc
Fire()
if(usr.fired == 0)
var/obj/Bullet/O = new /obj/Bullet(src.loc)
step(O,usr.dir)
usr.fired = 1
spawn(15)
usr.fired = 0
del(O)
else
return
Problem description:
When I use the verb "Shoot" or activate the proc "Fire", the bullet appears, but it doesn't step at all. It stays on screen but doesn't move like it should. I also tried changing step(O,usr.dir) to walk(O,usr.dir) but the same problem occurs. The rest of the code isn't shown; it only includes the bump proc (like if the bullet hits an enemy or a wall) and the bullet/enemies description (icon/icon state), and defines variables (health, fired.) if anyone needs the rest of the code to help me out, post saying it and ill be more than happy to post it.
Lummox JR