ID:1914348
 
(See the best response by Kaiochao.)
Code:
//
PanToLocation(locate(2,2,1),locate(40,20,1))
//
proc/PanToLocation(start,end)//used to pan to another location
var/obj/J=new(start)
Player.client.eye=J
walk_to(J,end)


Problem description:
I am trying to have the camera follow and object around the map, but if the object is out of range of the player, it wont move at all. I already set the perspective to EYE, but it does nothing. Can someone please help me fix this problem?
Best response
This is probably because walk_to() is failing:
DM Reference:
If Ref is within Min steps of Trg, no action will be taken. This is also true if the target is too far away (more than twice world.view steps).

Instead, you could use walk_towards() if it doesn't have the same limitation, otherwise you'll have to write your own.
In response to Kaiochao
Oh, ok I see. I will just create my own walk cycle. Thank you for the help!
In response to I NPC I
I NPC I wrote:
Oh, ok I see. I will just create my own walk cycle. Thank you for the help!

An NPC creating its own walk cycle! Space/time paradox!
:P