this doesn't work, though it seems logical...
Enter()
..()
usr.dir = "NORTH"
ID:175828
![]() Mar 6 2003, 3:04 pm
|
|
How can I make it so when someone's mob walks on the ladder, he's always facing north?
this doesn't work, though it seems logical... Enter() |
Actually, no, he shouldn't. He wants Entered(), not Enter(). Enter() is called to determine whether or not something can enter an atom. Entered() is called when both Exit() and Enter() return true (1).
|
Garthor wrote:
Actually, no, he shouldn't. He wants Entered(), not Enter(). Enter() is called to determine whether or not something can enter an atom. Entered() is called when both Exit() and Enter() return true (1). Directly from the reference under Enter(); <code> When: Called when an object attempts to enter the contents list. </code> So it would do what he wanted. Just maybe not to the full extent. But using Entered() would up the detail and probably stability of it, though. ~>Volte |
ok, now, if I'm facing a different direction, it "jumps" to the ladder facing north, without a smooth movement.
|
Delita12345 wrote:
ok, now, if I'm facing a different direction, it "jumps" to the ladder facing north, without a smooth movement. One of the settings for the atom/movable/animate_movement var will make it continue to slide properly even if it changes direction. And if you haven't taken usr out of your Entered() proc by now, do so; it has absolutely no place there. (The reference steers people wrong in this; it actually has a bad example that puts in usr by mistake.) Lummox JR |
Lummox JR wrote:
One of the settings for the atom/movable/animate_movement var will make it continue to slide properly even if it changes direction. ok, how would I do that? |
Almost. Just remove the quotes, and you should be good to go.
~>Volte