View Single Post
  #20  
Old 10-03-2005, 06:25 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
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;
}

__________________

Reply With Quote