View Single Post
  #12  
Old 08-28-2009, 01:46 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by LoneAngelIbesu View Post
This is pretty unrelated, but I have a question about onKeyPressed(). I've seen plenty of people using that action in conjunction with keydown(). Isn't this redundant, since onKeyPressed() has parameters that provide which key is pressed? Why not use a simple check with the parameters, rather than a function?
Yes it is somewhat redundant, but onKeyPressed() gives you the keycode, while keydown() gives you an "action number" which is mapped to a keycode via the settings on the player's client.

It may be possible to access the settings data via. some obscure way, but I'm not sure about that.
Reply With Quote