Garry's Mod Wiki

Player:SprintEnable

Player:SprintEnable()

Description

Enables the sprint on the player.

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

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.

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 12