Player/StopWalking

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

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

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.

Examples

Example

Disables Sprinting, not Walking.

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


Personal tools
Navigation