Moving up a ladder or lift script

I have searched the asset store and not found anything like this. Is anyone aware of a script that will move avatars directly upwards, for a predefined distance? I am limited in my design work by needing to use stairs to access lofts and other even higher places.

Thank you.

If you get into a trigger volume for a ladder, make pressing a key disable standard movement and the character’s gravity/rigidbody whatever and the fwd/back keys simply translate the character up or down until you press the key again.

1 Like

You can easily make an elevator/moving platform with the animation system.

Create a platform from a box, select it and go into the Animation window. Create a new animation and add a Transform Position property. Use three key frames, one at the start, one in the middle and one at the end. The start and end should be at the same position (either at the bottom or the top of the place where you want your elevator) and the middle one should be set to the other extreme of where you want your elevator to go. This will make the elevator ping pong nicely between its top and bottom positions.

Of course, you’ll want a kinetic rigidbody and a collider on the platform as well.

1 Like

Thank you. :slight_smile: