ID:166665
 
        Stealth()
if(usr.stealthed)
usr.stealthed = 0
invisibility = 0
else
usr.stealthed = 1
invisibility = 1
usr.stealthxp += 10


Can someone tell me how to check if any mob is within 8 squares of the figure attempting to stealth? I figure it has something to do with oview(8), but I'm not sure.

~PAK
for(var/mob/M in oview(8))if(usr.target==M)
// Your stuff
In response to Mysame
Can you give me an example that checks every time I step? Or explain how I would do it?