Making third person character walk with mouse scroll input.
What im trying to accomplish is, the default character for the third person project has a walk state as i can see. And i can see in the character movement component that you can set the max walk speed, and once you lower that enough he begins to walk.
Im trying to make it so that if you SCROLL the mouse wheel down a notch, it will make him move a little slower. And then if you move it down one more notch, he will slow down even more. I want to have about 3-4 levels of this, with the lowest one being a steady walk. And then do the same thing, except scrolling up each notch to bring him back to normal speed. Similar to how splinter cell chaos theory on pc is with default controls.
How can i do this with blueprints?
I've created a solution which will allow you to easily change to your settings. You will need to create two variable floats. One will be for Max Speed, the other will be for Variable Speed. By changing the Make Literal Float to 150, and then changing the Max Speed to something that it can be divided by. So lets say 600 / 4 = 150, you can go up and down between the range. I tried doing it with floats to eliminate the math, but something with the expression isn't accurate enough to allow such. Maybe I'm doing something wrong but I'll have to try it out another time. Either way, I hope this works well for you.
answered Apr 11 '14 at 08:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here