ID:180731
 
How can I teleport a player to another point on a map?

Player steps on a teleporter and gets telported anywhere I set that telepoter to go to.

how would this be done?
On 3/4/01 4:54 pm Darkness wrote:
How can I teleport a player to another point on a map?

Player steps on a teleporter and gets telported anywhere I set that telepoter to go to.

how would this be done?

obj/teleporter
Entered(mob/M)
M.Move(locate(3,1,1))
..()


I think.
In response to Spastic
how come this won't work?

obj/teleporter
icon = 'Portal.dmi'
Entered(mob/M)
flick('Teleporting.dmi',usr)
M.Move(locate(82,81,1))
..()
In response to Darkness
Nevermind...and for people who want to know how I did it it goes like this :

area/teleporter
Entered(mob/M)
M.loc = locate(81,82,1)
..()
In response to Spastic
obj/teleporter
Entered(mob/M)
M.Move(locate(3,1,1))
..()

That's good! Only one minor flaw: you'd want to make it a turf instead of an obj, because under normal circumstances a mob won't enter an obj's contents. (But it's entirely possible, of course. For example, you could have a net that collects butterfiles, and so on.)