So I want to know how I can make it so the character can only run (which i have the max speed done for this already) during specific times in the game. I have already done the event graphs for Running and Walking. I am a beginner so please make this simple as possible. It’s also fine if it is complicated.
Not entirely sure what you mean, but can’t you simply clamp the speed to a different maximum value when the player is not allowed to run?
If I understand correctly you have moments in your game when your character is running by default. Not sure how you solved movement in your game but I’ve tweaked FirstPerson Shooter character blueprint to give you example how you can achieve what you want:
It’s not perfect, but it gets the job done. Now via setting variable Always run
to true
/false
you can affect player speed regardless of user input.
Edit: Assumed character movement: walking (default), running (left shift)