ID:178517
 
I want to display a message while the player is near an object I have some code I just can't seem to get it to work.

For the object I have

streetsign
New()
..()
Sense()
icon = 'streetsign.dmi'
density = 1

The sense proc looks like this

Sense()
for(var/mob/M in view(src))
M << "Your near a sign"
spawn(5)
Sense()

I have put some debug messages in and it dosn't seem to even start the loop. What am I doing wrong?

-Shwn
Try this copy and paste heh.
mob/streetsign
icon='sign.dmi'
density=1
New()
spawn() Tell()
proc
Tell()
for(var/mob/M as mob in oview())
if(M.client)
M<<"Heres me I am a sign!"
spawn(5)Tell()