I agree with ThompsonN13. You are doing nothing to set the height of the collision capsule, so of course your collision capsule will remain the same size if you go into crouch. Just because you made a crouch bool, doesn’t mean the engine understands what you want by it.
Your options are either to;
-
Directly set the height of the collision capsule. This is not recommended, since setting the height of the collision capsule during runtime is never as simple as just setting the height, as you will have to take into account the new position of the collision capsule, you have to do checks whether you can uncrouch or not and a whole lot of other things.
-
Call the “crouch” function in your character blueprint when you want to crouch, and Uncrouch when you want to stop crouching. This function already takes care of resizing the collision capsule for you (using the Crouched Half Height variable for the new size), together with all the annoying things you would otherwise have to take into account as well. This is the recommended course of action.