Garry's Mod Wiki

Garry's Mod Wiki

  Player:StopWalking()

Description

We advise against using this. It may be changed or removed in a future update. 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.

When used in a GM:SetupMove hook, this function behaves unexpectedly by preventing the player from sprinting similar to Player:StopSprinting.

Example

Disables Sprinting, not Walking.

hook.Add( "SetupMove", "TestFunc", function( ply, mv, cmd ) ply:StopWalking() end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...