ID:261445
 
How do I set the user's default position when they log in? I place them in an area using locate() that plays music on its Enter() proc, but it doesn't play the music when I use locate(). How do I place the user there while still letting the music play?
Enter() isn't called when you set location directly:

mob/Login()
..()
src.Move(locate(/area/start))


Should do it.
In response to Nadrew
Nadrew wrote:
Enter() isn't called when you set location directly:

> mob/Login()
> ..()
> src.Move(locate(/area/start))
>

Should do it.

Now, the question is, how do I move an object from one Z-level to another (e.g., when exiting out of one area onto a world map) without ruining the music? I can't use the Move proc, because everytime I do I get "maximum recursion level reached" error (when used in the Enter proc of the turf that tranfers the mob). How can I move a mob from one map to another from outside of the mob?
In response to Foobar Master
Then you'd do something like this:

mob/verb/Test_teleport()
usr.loc = locate(x,y,z)//change this to fit your needs