Quote:
Originally Posted by Gambet
Yes they are:
PHP Code:
keydown(int keynumber) - returns if the specified key is pressed (0..10: up, left, down, right, S, A, D, M, tab, Q, P)
Those are the default keynumbers that correspond to the specified keynames, which is why if you did
player.chat = keyname(0); it would return 'Up' and so forth.
|
In your method you are specifiying what the keys are. What if I were to edit my DEFAULT arrow keys to something like '1, 2, 3 and 4', your method would still be looking for your basic arrow keys