ID:160997
 
i am trying to make a turf or a obj take me to a diffrent map and i was trying to see if this is right cause i dont think it works



mob
var
cant_move

mob
Move()
if(cant_move) return
..()
verb/enter_cave
turf
cave1
var
dest_x = 1
dest_y = 1
dest_z = 2

proc/enter(var/mob/M)
M.cant_move = 1
sleep(10)
if(!M) return
M.Move(locate(dest_x,dest_y,dest_z))
M.cant_move = 0

turf
Entered(atom/movable/turf,atom/OldLoc)
.=..()
if(ismob(turf))
var/turf/cave1/P = locate() in src
if(P)
P.Enter()