Player/SprintEnable

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

Description

Enables 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

Allows the player with ID 1 to use the sprint (⇧ Shift by default) feature.

player.GetByID( 1 ):SprintEnable()

Output:

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