mob
proc
Fearsome_Lash(dist=3)
if(src.attacking == 0)
var/list/l
switch(src.dir)
if(NORTH)
l = bounds(src,0,TILE_HEIGHT,0,(dist - 1) * TILE_HEIGHT)
if(SOUTH)
l = bounds(src,0,dist * -TILE_HEIGHT,0,(dist - 1) * TILE_HEIGHT)
if(EAST)
l = bounds(src,TILE_WIDTH,0,(dist - 1) * TILE_WIDTH,0)
if(WEST)
l = bounds(src, dist * -TILE_WIDTH,0,(dist - 1) * TILE_WIDTH,0)
for(var/mob/M in l)
src<<"[M.name]"
for(var/turf/T in l)
new /obj/Effects/Lash(T.loc)
Problem description: I'm unable to figure out how to properly create instances of a new obj at specific. I'm able to identify which turfs I would like the obj(effect) to appear on, but I'm unsure how to feed that information into the new() proc properly. Completely new to DM so I may be going about this entirely the wrong way. Any help on this would be greatly appreciated.
The loc of a turf is an area, which can cover multiple turfs.
Just need to change that T.loc to T.