Garry's Mod Wiki

Revision Difference

Player:SprintDisable#527164

<function name="SprintDisable" parent="Player" type="classfunc"> <description> Disables the sprint on the player. <bug issue="2390">Not working - use <page>Player:SetRunSpeed</page> or <page>CMoveData:SetMaxSpeed</page> in a <page>GM:Move</page> hook, instead.</bug> </description> <realm>Server</realm> </function> <example> <description>Stops and prevents player with ID 1 from sprinting</description> <code>player.GetByID( 1 ):SprintDisable()</code> <output>None, but Player 1's sprint is disabled.</output>⤶ ⤶ </example> <code>Entity( 1 ):SprintDisable()</code> </example>