ID:175828
 
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()
..()
usr.dir = "NORTH"
Delita12345 wrote:
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()
> ..()
> usr.dir = "NORTH"
>


Almost. Just remove the quotes, and you should be good to go.

~>Volte
In response to Volte
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).
In response to Garthor
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
In response to Garthor
ok, thanks for the quick replies. :)
In response to Volte
ok, now, if I'm facing a different direction, it "jumps" to the ladder facing north, without a smooth movement.
In response to Delita12345
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
In response to 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?
In response to Delita12345
Press F1. Typed in animate_movement. Press enter.