Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 75ms

DB GetPage 44
Generate Html 2
SaveChanges (1) 13
Render Body 0
Render Sidebar 12