ID:2423421
 
Code:
turf
tele
DownstairsBG
icon='Turfs/Earth/Roomturfs.dmi'
icon_state="Stairs"
Enter(B)
usr=B
if(istype(usr,/mob/Player))
usr.loc = locate(5,81,1)
UpstairsBG
icon='Turfs/Earth/Roomturfs.dmi'
icon_state="Stairs"
Enter(B)
usr=B
if(istype(usr,/mob/Player))
usr.loc = locate(16,97,1)



Problem description:When my char is entering the turf with the Enter() it gets teleported into the wall. While walking normale into it there is no problem.
https://ibb.co/0JLvJpv
https://ibb.co/QrMvqLJ

So i was looking at Pixel movement but dont really know if that will be the solution for my problem :(


turf/Enter(A) //A in this case is who IN >() (>) HERE (
--- if(ismob(A))
--- --- var/mob/B=A
--- --- B.loc=locate(x,y,z)

turf/Enter(A)
--- if(istype(A,/mob/))
--- --- var/mob/B=A
--- --- B.loc=locate(x,y,z)

turf/Enter(mob/A)
--- if(ismob(A))
--- --- A.loc=locate(x,y,z)

turf/Enter(mob/A)
--- if(A.client)
--- --- A.loc=locate(x,y,z)

A.loc="TAG"
A.loc=/turf/start
A.loc=B.loc
A.loc=get_step(B,EAST)
turf
tele
DownstairsBG
icon='Turfs/Earth/Roomturfs.dmi'
icon_state="Stairs"
Enter(OBJECT)
if(OBJECT && istype(OBJECT,/mob/Player))
OBJECT:loc = locate(5,81,1)


Use the tag
<dm>
to format your code.