ID:168950
 
I'm having problems changing the "client.eye" var to be able to stalk people :( One time I had it so that it worked, but when the "Watch-ee" got [EDIT: 3 spaces not 2] spaces out of my mob's view, the screen went blank :(

Currently, nothing happens :P


        GM_Watch(mob/M in world)
set category = "GM"
src.watched = M //used for something else
src.client.virtual_eye = M
src.client.eye = M


I filed this under "How-to" because I have no idea how this works (I just looked up some vars and said "this looks cool"), but you can always move it if you think it should be under Code Problems. I just figured that either my code is too far wrong for "code problems"; because I'm certain I don't have just a typo in there =/

EDIT: I do get a runtime saying I can't write to virtural eye; that's why "nothing" happens

But why does it go dark when I get 3 spaces away?
You had it half right the first time. Look up the perspective var (client) in the reference.
In response to DarkView
yay that fixed it right up ^^

P.S: your avatar creeps me out