Player/SprintDisable

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

Description

Disables the sprint on the player.

BUG

Not working - use Player:SetRunSpeed or CMoveData:SetMaxSpeed in a GM:Move hook, instead.

Issue Tracker: #2390

Examples

Example

Stops and prevents player with ID 1 from sprinting

player.GetByID( 1 ):SprintDisable()

Output:

None, but Player 1's sprint is disabled.
Personal tools
Navigation