ID:156384
 
Hello again!

THIS time around, there really shouldn't be anything wrong. I mean, REALLY. However this snippet:

turf
Teleport
icon='Teleport.dmi'
layer=TURF_LAYER+1
var/NewX=25
var/NewY=11
var/NewZ=4
Entered(var/mob/M)
if(ismob(M) && M.client)
M.loc=locate(src.NewX,src.NewY,src.NewZ)
return ..()

Is not taking me to (25,11,4). Though it totally should be! My only guess is that it has to do with the layers. The Teleport turf is only 1x1, however it rests on top of a turf that is somewhere along the lines of 12x12. The larget icon has no defined layer, whereas the Teleport has a layer of TURF_LAYER+1 as you can see.
If anybody can let me know if it is a matter of layers I would greatly appreciate it.
You cant just Get rid of layers and Ctrl click the teleport turf on?
The layer of a turf has nothing to do with anything except the visual ordering of objects. What likely happened is that you are placing another turf on top of the Teleport turf. As you can only have one turf per location, this results in the Teleport turf being deleted.
Yurokei wrote:
turf ... rests on top of a turf

Only one turf can exist at any location. If you are in the map editor and you are placing more than one turf at a location, all it does is combine the icons. It only looks like there are two turfs there. Try editing the icon for the Teleport turf and place it on its own.
I'm not sure if I have the correct idea here, but wouldn't an area be appropriate as well? That way the Teleport icon doesn't need to be changed, and mapping would be easier.
In response to CauTi0N
In response to OrangeWeapons
Yep, areas. Actually, that demo is pretty useful though.