in this example i have two maps. the second map has a turf with a dirt tag. when the mob walks over the sand turf in the first map, the mob should be displayed on the dirt turf of the second map but instead the mob is displayed in the second map at the same x and y coordinates of the first map located at where the sand turf was.
turf
sand
icon = 'icons/Sand.dmi'
stepped_on(mob/m)
if(ismob(m) && m.client)
var/turf/T = locate("dirt") //find the destination
if(T)
m.loc = T