Player.SetCrouchedWalkSpeed
From GMod Wiki
Function | |
Syntax | Player:SetCrouchedWalkSpeed( Integer MaximumCrouchSpeed ) |
Description: | |
Defines the player's maximum speed while crouching | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetCrouchedWalkSpeed]Player.SetCrouchedWalkSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- The parameter is NOT the absolute crouch-walking speed, it is a speed multiplier, so you will usually want to give it a value between 0 and 1 if you want to move slower when crouching
- Once set, the player's speed will not change unless set again, the Sandbox and Base gamemodes do not set this so do not worry about them overriding the function ever