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.
ID:271375
![]() Jun 5 2007, 9:53 am
|
|
![]() Jun 5 2007, 10:08 am
|
|
Press F1 whilst in Dreammaker and look up Entered() and loc.
|
turf/Tele 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. |
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) |
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)
|
I'm aware of that, however, this offers more. You can change vars and the likes, and also include object transportation if editted.
|