Question by
abc123weee · Apr 24, 2016 at 02:10 AM ·
scripting problemphysicsobjectfirst-person-controllerladder
How to make a ladder script
I've made a ladder object, but I have no clue how to make it so that when my character walks into it, they start climbing. I don't need an animation or sound, but if someone could post a script it would be greatly appreciated.
Comment
How are you currently moving your character around? Can you show your character movement script?
If you are using a character controller, you could just try to change the step-size of the character controller to a bigger value so the ladder will be recognized as one big step. Then you could try to change it back to normal after you left the ladder, with a trigger maybe. Not sure if this is working, but you could give it a try.