Jump to content

Recommended Posts

Posted

I was wondering if there was a way to check if a key is down every tick. The reason I need to do this is because there are a few weapons in my mod that do things if a player is holding a button. The keypressed event only updates the keybindings every time a key is pressed, and for some reason if I use TickEvent it thinks the keys never get pressed. Anyone know how to check them every tick?

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Posted

If the key is released, is there an event that's fired?

 

If so, you can use your proxy class to hold the client state of which key is being held down and set it when the key is pressed, and reset the flag when released.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.