Problem description:
I have a portal that I want to make teleport the usr to 2,2,1. I want the portal to auto teleport the usr when the usr steps on it.
Any help is great.
ID:160200
![]() Oct 26 2008, 7:59 am
|
|
![]() Oct 26 2008, 8:03 am
|
|
Use the forum search. This has been answered a lot of times.
|
Look up for:
Enter() proc http://www.byond.com/docs/ref/info.html#/atom/proc/Enter Entered() proc http://www.byond.com/docs/ref/info.html#/atom/proc/Entered |
Well, you certainly didn't search hard enough. Both kinds are rather easy to find. Try different keywords, and don't use too many. Using 'teleporter', 'portal' and as such should yield results.
Basically, it involves looking up and overriding a turf's Entered() proc to move objects that have stepped into the turf to another location, which you could identify via coordinates, type path, or tag; all methods via the locate() proc. Make sure you read about the above procs, Move(), and the loc var, in the DM Reference (F1 in Dream Maker, or via this site). |
(Entered() should be used for this; using Enter() is a mistake, since it is not meant to perform actions after entering an atom, but rather, as the Reference says, to decide whether to allow movement or not)
|
dude u should really learn before learning!
anyways: turf |
umm. off topic
so you say if i want like... door to lets say 1,2,3 i use Entered() ????????? |
Gogeta126 wrote:
Same to me. src in proc. src won't work in this case, as it's the turf. Enter() and Entered() pass an argument that contains the /atom/movable that is attempting to enter or has successfully entered the turf. |