19.06.2011, 22:17
How do I check when I release for example the 'W' key (forward or any of the buttons that orientates you?
I tried the GetPlayerKeys example, but can't seem to make it work, also tried the KEY_UP/DOWN/LEFT/RIGHT definitons. Didn't work, I tried them with PRESSED and RELEASED macro, same thing, doesn't detect them. Any ideas?
My code.
If I use another key, like KEY_ACTION or KEY_CROUCH, it works.
I tried the GetPlayerKeys example, but can't seem to make it work, also tried the KEY_UP/DOWN/LEFT/RIGHT definitons. Didn't work, I tried them with PRESSED and RELEASED macro, same thing, doesn't detect them. Any ideas?
My code.
pawn Код:
if(PRESSED(KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT)) Pressed
else if(RELEASED(KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT)) Released