how to get keyPress

Slum Village
Joined 30/10/2021
Posts 57
04:40 PM 21/05/2022
like if you press E, a thing happens, if you press Q, another thing happens

is this possible in brick hill


SmartLion
Joined 16/04/2017
Posts 1,960
07:31 PM 21/05/2022
https://brickhill.gitlab.io/open-source/node-hill/classes/Player.html#keypress


Slum Village
Joined 30/10/2021
Posts 57
10:10 PM 21/05/2022
um, yeah but im talking about a specific alphabetical key and not just a general thing like it says "a-z" there. im asking if that was possible, not that


SmartLion
Joined 16/04/2017
Posts 1,960
02:44 AM 25/05/2022
Try logging the key


brickz0r
Joined 18/05/2022
Posts 74
05:21 PM 25/05/2022
thank you


Dragonian
Joined 29/05/2017
Posts 2,843
Moderator
01:57 PM 27/05/2022
If you are talking about sequential keys, i.e. press e and then q to do something else (e has to be pressed before q) then I wrote a quick script to accomplish this:

https://pastebin.com/f8cq51n3


[MCN] ghhjsjgrhwe
Joined 01/01/2022
Posts 4,436
12:07 AM 28/05/2022
[ Content Removed ]

1