Garry's Mod Wiki

CUserCmd:SetUpMove

  CUserCmd:SetUpMove( number speed )

Description

Sets speed the client wishes to move upwards with, negative to move down.

See also CUserCmd:SetSideMove and CUserCmd:SetForwardMove.

This function does not move the client up/down ladders. To force ladder movement, consider CUserCMD:SetButtons and use IN_FORWARD from IN enum.

Arguments

1 number speed
The new speed to request.