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 :(
ID:2423421
Jan 20 2019, 1:50 am
|
|
--- 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)