This blueprint shows a smooth crouching system, using a timeline and lerp:
However, when I try this out I-game, the smooth crouch seems to only happen once, the next crouch are just an immediate change in height which does not look good. Any suggestions on how to fix this?
Note: The timelines are connected to a “Crouch” Action Event, and the “Set Character Full Height” is connected to an “Event BeginPlay”.
Another Note: “Can Crouch” is also on. It wasn’t on before, however it does not matter whether it is on or off, the problem still remains.
Resolved! Cheers mate, appreciate it. However, I’m not implementing the object detection feature my crouch is going to be more of a sneak, where enemies find it harder to “hear” you, I guess. Plus, I shouldn’t get stuck in the floor as I’m not using third person, but I’ll try it anyway.
Thanks!