mob
proc
Charge()
var/obj/X = new/obj/Projectile
X.layer = 6
usr.overlays+=X
var/N = 3
lap
for(var/mob/M in get_step(usr,usr.dir))
if(M!=usr)
M.Damage()
N-=1
sleep(3)
if(N>0)
goto lap
else
goto final
step(usr,usr.dir)
N-=1
sleep(3)
if(N>0)
goto lap
else
sleep(5)
usr.overlays-=X
So Im having an issue with some code that seems to work fine in another area of the game, but for some reason its not working on this one proc. basically the premise of the code is to make an overlay appear ontop of the user, have them rush forward in the direction their facing, and do damage to anyone standing in their way. The only issue Im having is that the overlay has decided it doesnt want to go away, I have tried everything I can think of, and it seems to be going well to the line itself, so i cant think that theres much else of a solution then to ask byond.
I also recommend using the image proc for overlays instead of creating objects.