Player.SetCrouchedWalkSpeed

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetCrouchedWalkSpeed( Integer MaximumCrouchSpeed )
Description:
Defines the player's maximum speed while crouching
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetCrouchedWalkSpeed]Player.SetCrouchedWalkSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAllow players to move 10 times faster while crouching
Used onNewerServer.png
Code
 
function FastDuckEnable(pl)
    pl:SetCrouchedWalkSpeed(10)
end
hook.Add( "PlayerInitialSpawn", "superduck", FastDuckEnable )
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox