Author Topic: Making a custom bind  (Read 561 times)

Okay, first off, if this is in the wrong forum I couldn't think of anywhere else.

So here's the thing, I've found where the key binds are all stored in a .txt document, I've got the gist of it, but what I need to know is: Is it possible to make it so that when you press a key, you say something, ranging from "Lululululululul" to "Hello!".

If it is possible to do this, could someone tell me how I would make it make me say /rapidfire when I press the "R" key?

Thanks for any help on this!


Here are a couple hints:

1. Slash-commands in the chat don't actually work by saying it to the server. When you type a slash-command into the chat for example /rapidfire, it's the equivilant to opening the console and typing:
commandtoserver('rapidfire');

2. The line in the config file:
moveMap.bindCmd(keyboard, "escape", "", "escapeMenu.toggle();");
is equivilant to opening the console and typing:
escapemenu.toggle();

Splice that all together on your own.

Thanks, much appreciated