ID:157075
 
I am very knew to this so its probably fairly basic but i want to be able to make it so when i walk onto a turf, such as a door or portal, it will send me to a room, or place on a second z coordinate.

Go to http://byond.com/docs/ref/ and search+read about Entered().
In response to Darkjohn66
im probably not understanding it but that seems to be having the mob obtain an object and not the mob entering a new object.

thanks, but i dont quite understand.
In response to Callncollin
You know, reading the actual entry would tell you what it is about, instead of looking at the last snippet and basing the interpretations on that solely. This assumption is made based on how your post sounded like and without reference to the first snippet in the DM reference entry.

And I quote:
Format:
Entered(atom/movable/Obj,atom/OldLoc)
When:
Called when an object has entered the contents list through Move(). Directly setting the object's loc does not result in a call to Entered() or any other movement side-effects. The same goes for creation or deletion of an object at a location.
Args:
Obj: the object that entered (a mob or obj).
OldLoc: the previous location of the object.


Note the underlined paragraph. When you walk on to a /turf (via Move(), not by changing the loc variable) it enters that /turf's content. Guess what is called?