Garry's Mod Wiki

CUserCmd:SetForwardMove

  CUserCmd:SetForwardMove( number speed )

Description

Sets speed the client wishes to move forward with, negative if the clients wants to move backwards.

See also CUserCmd:ClearMovement, CUserCmd:SetSideMove and CUserCmd:SetUpMove.

Arguments

1 number speed
The new speed to request. The client will not be able to move faster than their set walk/sprint speed.