ID:157513
 
How would I go about making an attack where you would create some kind of object or overlay so many spaces from you and if a person was there it could spawn and countinuuously do damage for a certain amount of time if anyone is in that spot, then delete it. I really just dont get how you could detect if say an object was over the person how the heck the whole system would even work.. maybe if somebody has a good library or demo they know of?
Create the objects that'll be spawned then make it so when there spawned that they check for any obj, turfs, mobs in there area. Then loop through it.
In response to Crazy_jono
So something like this?
var/turf/water2/w = get_step(src, dir)
if(!istype(w)) return