Garry's Mod Wiki

Revision Difference

CUserCmd:SetButtons#518228

<function name="SetButtons" parent="CUserCmd" type="classfunc"> <description> Sets the buttons as a bitflag. See also <page>CUserCmd:GetButtons</page>. <note>If you are looking to affect player movement, you may need to use <page>CUserCmd:SetForwardMove</page> instead of setting the keys.</note> </description> <realm>Shared</realm> <args> <arg name="buttons" type="number">Bitflag representing which buttons are &quot;down&quot;, see &lt;page&gt;IN&lt;/page&gt;.</arg> <arg name="buttons" type="number">Bitflag representing which buttons are "down", see <page>IN</page>.</arg> </args> </function>