Player/SetWalkSpeed

From Garry's Mod
Revision as of 09:21, 8 November 2018 by Robotboy655 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Player:SetWalkSpeed( )

Description

Sets the player's normal walking speed. Not sprinting, not slow walking +walk.

There currently is no way to modify the slow walking +walk speed.

See also Player:GetWalkSpeed, Player:SetCrouchedWalkSpeed, Player:SetMaxSpeed and Player:SetRunSpeed.

BUG

Using a speed of 0 can lead to prediction errors.

Issue Tracker: #2030

Arguments

number walkSpeed

The new walk speed when sv_friction is below 10. Higher sv_friction values will result in slower speed.

Has to be 7 or above or the player won't be able to move.
Personal tools
Navigation