ID:142288
 
Code:
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()


Problem description:
im was wondering if you can help me cause im trying to make a obj or turf to enter a diffrent map but its not working

Your mob can't move when you Move() it, so nullify their cant_move var before the Move().
In response to Kaiochao
ok i did that but it still does not work
In response to Tashawn56
I'm not entirely sure how stacking turfs works, but what I know is that if you stack them in the map editor, it just adds it to the overlays of the one below.

You're checking for turfs in the turf. You should either try checking for a turf in the turf's location, or just move the Enter() proc to the cave entrance.
In response to Kaiochao
ok thank you