Jump while crouched and smooth crouching

Hello guys, I have two questions, thanks in advance!

  1. How can I make my character to jump while crouched? I tried calling uncrouch() and then DoJump(), but it doesn’t work.
  2. How can I make smooth crouching? There are some tutorials with blueprints and timelines but I want to know how can I do it in c++.

For number 2, I’d unhook the camera position from the crouching state and set a camera height target. Interpolate between the current position and target height. This will have the effect of the physical state of crouching continuing to be instant but having a transition on the camera position.

Can you go into more details? Im still a newbie so I don’t really get how can I do that.

Open one of the example project’s character movement blueprints and start poking around, you’ll start to understand it.

I actually made the smooth crouch with blueprints, but I still have an issue with jumping (cant uncrouch fully until I start to move after jump).