Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Implement Sprint / Crouch speed? #54

Open
BenNadler opened this issue Nov 5, 2024 · 0 comments
Open

How to Implement Sprint / Crouch speed? #54

BenNadler opened this issue Nov 5, 2024 · 0 comments

Comments

@BenNadler
Copy link

BenNadler commented Nov 5, 2024

Hi! I'm struggling to override Sprint and Crouch speed using Enhanced Input Actions, and trying to better understand how those are implemented.

In code I see that MaxWalkSpeed = RunSpeed;

On my Input Action for Sprint, manually overriding MaxWalkSpeed has no effect and seems locked to the RunSpeed value.

I also see that MaxWalkSpeedCrouched = RunSpeed * 0.33333333f; but I see no perceptible change in movement speed when crouched. My camera height is lowered but I'm still moving at the default speed.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant