23.04.2018, 20:14
Use OnPlayerKeyStateChange
To make a test for pressing 2 keys at the same time you can do something like this with your own keys:
There's plenty examples on the wiki.
Here's a list of all the keys.
Like Maxandmov said, give it ago, if you get stuck, just ask.
To make a test for pressing 2 keys at the same time you can do something like this with your own keys:
Код:
if((newkeys & KEY_FIRE) && (newkeys & KEY_CROUCH)) { //do something }
Here's a list of all the keys.
Like Maxandmov said, give it ago, if you get stuck, just ask.