Through the user command object provided by GM:CreateMove, you should be able to set buttons such as +forward, +attack, etc.
I used this code to test it:
[code]lua_run_cl hook.Add( "CreateMove", _G, function( cmd ) cmd:SetButtons( cmd:GetButtons( ) | IN_MOVERIGHT ) end )
[/code]
Nothing happens. No endlessly strafing right.
[code]lua_run_cl hook.Add( "CreateMove", _G, function( cmd ) cmd:SetButtons( cmd:GetButtons( ) | IN_ATTACK ) end )
[/code]
This behaves as expected and it as though I am holding down my attack button.
Anyone confirm? Tell me what I am doing wrong?
Sorry, you need to Log In to post a reply to this thread.