Limit movement speed on Zoom and Lateral Movement

Hello

I have set up a sprint hold and release, and a run walk toggle. I would like to limit the movement speed when using zoom to only the walk speed. I would also like to limit the lateral movement to run speed, and backwards to walk speed.

So if a player holds sprint and zooms, they walk despite holding sprint.
If a player is sprint and chooses to move laterally, they are slowed to run speed. If they are holding spring and walk backwards, they will initiate walk speed.

The same would be for crouch as well.

Thanks!

You could try setting a boolean variable based on if they are zoomed in.
You could also set another boolean variable for if they are sprinting.

If sprinting (AND) zoom are both true then max walk speed = 200 or whatever you have in your blendspace for walking
If lateral keys are pressed and sprinting is true then set walk speed = 600 or whatever your run speed is.