How to toggle running for the character?
I succeeded in creating an FPS controler from scratch, the image below shows how I did it, and I commented the keys for better understanding.
But now I want to make it run. The base value for walking forward is 1, an I want to increase it when I press shift.
So I created and InputAction set up with Left Shift. But I don't know how to proceed. I need something that changes the value of Scale Value in Add Movement Input based on InputAction Run. I don't even know if it's possible, or if I have to change the whole thing around to make it work.
My idea was to use a boolean system to detect wether shift is pressed and change the value based on that. Having the 2 values set as float variables.
Any ideas how to do this?
asked Jun 21 '14 at 12:27 PM in Blueprint Scripting
are you looking for "maxwalkspeed" inside the character movement component? just set that to the value you specified in your blendspace max y value for running
if you want to make it quick and simple you can subclass from character instead pawn, add a camera comp, leave the skeletal mesh empty
See if the dodge and sprint implementation works for you, its at the bottom.
answered Jun 21 '14 at 01:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here