Garry's Mod Wiki

CUserCmd:SetButtons

CUserCmd:SetButtons

  CUserCmd:SetButtons( number buttons )

Description

Sets the buttons as a bitflag. See also CUserCmd:GetButtons.

If you are looking to affect player movement, you may need to use CUserCmd:SetForwardMove instead of setting the keys.

Arguments

1 number buttons
Bitflag representing which buttons are "down", see Enums/IN.

Special Pages


Wikis

?

Render Time: 75ms

DB GetPage 41
Generate Html 2
SaveChanges (1) 23
Render Body 0
Render Sidebar 6