Garry's Mod Wiki

Garry's Mod Wiki

  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 IN enum.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...