Author Topic: Keybind System?  (Read 777 times)

How would I make a keybind for a function, and how would it affect
it?

It's a client-side feature. This would call someFunction(3) whenever you press 'x':
Code: [Select]
moveMap.bind(keyboard, "x", "someFunction", 3);
If the bind should be used even when you're not in-game, use globalActionMap instead of moveMap.

It's also possible to make a more complex keyboard bind that can do more than just call a function.