Quote:
|
Originally Posted by Stefan
The keypressed event is working correctly, you don't get keypressed events anymore if the engine is already catching the event. You can still use keydown2 though to check for Ctrl+letter keys.
|
Ah, I see, that works, but only if I press s before I press CTRL. If I press CTRL then s it doesn't return true. Here's the script:
NPC Code:
//#CLIENTSIDE
if (created||timeout) {
if (keydown2(keycode(s)+512,false))
setplayerprop #c,pressing: #v(keycode(s));
timeout = .05;
}