Triggering actions on key press/release
🧠 Logic•Updated 2 days ago•0 views
timer.create("name", interval, 0, fn) in the keypress hook and timer.remove("name") in keyrelease - or use IN_KEY.* constants in keypress hooks for game binds.
How to run code on key press and stop on release
timer.create("name", interval, 0, fn) in the keypress hook and timer.remove("name") in keyrelease - or use IN_KEY.* constants in keypress hooks for game binds.