Quote:
Originally Posted by LoneAngelIbesu
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.