CanCrouch bool in c++

Can i switch “CanCrouch” bool value in cpp? I tried to do something but it doesn’t work

Hi Displaynonamee,

There are ACharacter::Crouch(); and ACharacter::UnCrouch();

I make my own condition tests before calling those…

The Uncrouch usually needs a linetrace to find if it’s possible to uncrouch, and the crouch turns into a slide when sprinting - things like that much easier when you abstract the conditions…

I mean this parameter
InkedUnrealEditor_BkEUDBIfOF

GetCharacterMovement()->CanEverCrouch

1 Like