ID:144381
 
Code:
for(var/mob/M in get_step_to(usr,usr.dir,2))


Problem description:
That's what I thought I should've been using. Evidently not. get_step_away doesn't work either :|

Your doing get_step_to completly wrong.

get_step_to(usr,M,2)


You were checking the step between the usr and the usr which doesn't work..
In response to A.T.H.K (#1)
o_o Yeah but that doesn't work either, I even double checked just then.
In response to CuriousNeptune (#2)
The best thing to do is use.

for(var/mob/M in view(2))


for(var/mob/M in view(usr.dir,2))


I think that works. I dunno, can't test it at the moment.
In response to A.T.H.K (#3)
Ew.

That will attack all mobs in a radius of 2 :(
In response to CuriousNeptune (#5)
get_step() for one step; maybe looping through block() for more.. I dunno >_> .. block() returns turfs I think.

- GhostAnime