ID:142027
 
Code:
mob
verb
Test_Blast()
set category = "Test"
var/obj/H = new/obj/Blast
sleep(5)
view(6) << "HA!!!"
H.dir = usr.dir
H.loc = usr.loc
walk(H,H.dir)




obj/Blast
icon = 'Icons.dmi'
icon_state = "blast
density=1
Move()
for(var/mob/Noobs/M in range(5))
spawn(2)walk_towards(src,M)
..()
Bump(Obstacle)
if(!Obstacle)
del(src)
return
if(ismob(Obstacle))
world<<"The blast hit [Obstacle]!"
del(src)
mob/Noobs
icon='Icons.dmi'
icon_state="nub"


Problem description:
The problem is that the range isnt working for the object, i tried view and oview and orange as well. Doesnt seem to work properley.
EDIT: Problem Fixed!!

Look up the range() proc, then look at your range() call. You're not supplying the proc the actual center of the range so it doesn't know which locations to scan; it can't just read your mind and guess "this time I want THIS object", you need to tell it. The default center is 'usr' since it's the most commonly used value, but for a different value you need to specify it explicitly as an argument (and of course, usr is bad to use in procs, so you should always specify both parameters when calling eg view() in a proc)
In response to Kaioken
Thanks i fixed it.