I’m trying to find a simple way to disable jumping while on a ladder, as otherwise ladder speed has no effect since the player can jump and climb the ladder super fast.
The code I tried is
The effect is that the zombie can’t jump on the ladder like I wanted (but it can jump off the top??) however if I move the zombie next to the ladder, then move it away again, I can’t jump at all (no matter how far away it goes).
There is a video here to show the behavior:
I looked at the previous solution posted where we disable default controls and simulate, but this has lots of code implications, especially for using animations for different actions.
I’m hoping that someone can explain WHY the behaviour is doing what it is doing, and maybe suggest a workaround that doesn’t involve disabling default controls.