Player/GetWalkSpeed

From Garry's Mod
Jump to: navigation, search
 Player:GetWalkSpeed( )

Contents

Description

Returns the player's normal walking speed. Not sprinting, not slow walking. (+walk)

See also Player:SetWalkSpeed, Player:GetMaxSpeed and Player:GetRunSpeed.

Returns

number

The normal walking speed.

Examples

Example

Gets player 1's walk speed, and prints it to console

print( Entity( 1 ):GetWalkSpeed() )

Output:

200 in console by default
Personal tools
Navigation