• Check if two keys are beeing pressed.
    2 replies, posted
Hi, i would like to check if a player is pressing 2 keys at once. I already got this. if ply:KeyDown( IN_USE ) and ply:KeyReleased( IN_FORWARD ) then print("boi") end But i want it to run once. How could i manage this? :/ It would be even better when i could do this in StartCommand hook cause i want to block movement when the player is holding down the use button. hook.Add( "StartCommand", "whatever2", function( ply, cmd )     if cmd:GetButtons(IN_USE) then     if cmd:GetButtons(IN_FORWARD) then         print("hm")     end     cmd:ClearMovement()     end end) But this is blocking the movement permanent :,(
You can delete the thread after giving the bounty, try selecting this comment as correct response
You dirty one Ok ^^
Sorry, you need to Log In to post a reply to this thread.