ID:271375
 
How do i make it so when you step on the area it will teleport you to certain Coordinates?

The help button doesn't explain much to me.
Press F1 whilst in Dreammaker and look up Entered() and loc.
In response to Stefm
turf/Tele
Enter()//I would use entered, but just incase there's some sort of bug where there is a player stuck on the tele then other players won't be able to get to wherever
usr.loc=locate(x,y,z)


Also Stefm be fair on the guy. I know you need to encourage him to learn, but please such a simple thing I am sure you can just make it and explain it to him.
In response to Granado Espada
Okay then, I'll try and be nice to you.

That code is wrong. Plain and simply. A teleport should always be done on Entered(), not Enter(). In procs you use "src" (excluding a few rare procs, such as Click(), where there can be nothing else). And what if something, like a projectile, would enter it?
1) Due to the use of <code>usr</Code>, it'd give a Runtime Error
2) It'd be, when used with <code>src</code> teleported as well! And we may or may not want that.

turf/Teleport/Entered(var/atom/movable/a)
if(istype(a,/mob/))
var/mob/m=a
m.loc=locate(x,y,z)
In response to Stefm
There's no need to have a mob var for atom/movable, you can still change the loc with a [if it was /atom/a, than you would need to define another variable to change the loc)
In response to GhostAnime
I'm aware of that, however, this offers more. You can change vars and the likes, and also include object transportation if editted.
In response to Stefm
True, true, you do have a good point there.
how do i play