When my character is crouched and the sprint button is pressed, my character stands and sprints. The next time I want to crouch, I have to press the crouch button twice. How do I fix this so that the crouch is activate on a single press again?
Welcome @vTrunkmonkeyv
Try something like this instead. Character class comes with Character Movement component which has a number of interesting settings. I marked the ones that should interest you. It also comes with built in functions for Crouch and Un Crouch.
Happy sneaking.
Thank you for the reply. Just by changing the crouch blueprint it solved my issue. I don’t know why I was trying to overcomplicate it. A 2nd set of eyes always helps.
Edit: Upon further testing… I had to make a small change to the Sprint function in your photo. The Branch Statement False needs to go to the Sprint value, not the walk value. It wasn’t initiating Sprint unless the character was in a crouch.
Now though, if you crouch while sprinting the character crouches at the sprint speed.
Yeah you right, false need to go into top spring instead of bottom node. Totally my fault and well done for spotting it!
Funny, it doesn’t happen on my end but then again this project is a bit of a mess. If you’re using crouch function it should go straight to 300, unless you do something else.
I meant my project (lol), sorry
My first project…a mess… How dare you!
Thank you for your help. I’ll keep trouble shooting. I know it’s something simple.