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?
ID:180731
![]() Mar 4 2001, 2:54 pm
|
|
how come this won't work?
obj/teleporter icon = 'Portal.dmi' Entered(mob/M) flick('Teleporting.dmi',usr) M.Move(locate(82,81,1)) ..() |
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) ..() |
obj/teleporter 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.) |
obj/teleporter
Entered(mob/M)
M.Move(locate(3,1,1))
..()
I think.