Sprint still works when crouched i need help

Add a boolean “isCrouched” and set it to true when C is pressed and false when it’s released

Then on the sprint function before setting the speed to a higher value add a branch and check if “isCrouched” is false, then set the higher speed

Is it possible if you can send me like a example image if not its fine ill try

Not possible today. Going to sleep for the night. I’ll post a pic tomorrow if you haven’t tired to implement it yourself by then.

Okay thank you.

You know the character has a built in crouch function right? :wink:

I posted both versions just in case

Build in crouch

Your implementation

thank you! :+1:

and whats that set red box is crouched thing called?

image
this one

it is a bool variable added to the blueprint character called “IsCrouched”

If you have never added custom variables then I would suggest reading / watching some tutorials on the subject

Okay thank you.

Im still confused on how to make a variable for the crouch the video shows an actor like an object how with a blueprint. And i hope this isnt bothering you its fine if your busy.

nevermind i did it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.