obj
test
Bump(atom/movable/A)
if(ismob(A))
A << "You're hit"
del(src)
proc/testproc(var/mob/u)
while(src)
step(src,u.dir)
src.overlays += src(locate(src.x+1,src.y,src.z))
sleep(10)
mob/verb/test()
var/obj/test/O = new(locate(usr.x+1,usr.y,usr.z))
O.testproc(usr.dir)
What i'm trying to achieve is an obj that keeps moving in the player's direction until it hits a mob. And every second that the obj exists, add an overlay to obj/test whilst giving the overlay the properties of obj/test.
However this isn't working at all, and i know that isn't the correct way of adding an overlay but i don't know how to show what i need in a better way.