Garry's Mod Wiki

Revision Difference

Player:StopWalking#512562

<function name="StopWalking" parent="Player" type="classfunc">⤶ <description>⤶ <deprecated>This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.</deprecated>⤶ ⤶ When used in a <page>GM:SetupMove</page> hook, this function behaves unexpectedly by preventing the player from sprinting similar to <page>Player:StopSprinting</page>.⤶ </description>⤶ <realm>Shared</realm>⤶ </function>⤶ ⤶ <example>⤶ <description>Disables Sprinting, not Walking.</description>⤶ <code>⤶ hook.Add( "SetupMove", "TestFunc", function( ply, mv, cmd )⤶ ply:StopWalking()⤶ end )⤶ </code>⤶ ⤶ </example>