Quick question about Keybindings.

Post Reply
echofire
Posts: 1
Joined: Thu Apr 05, 2018 2:03 pm

Quick question about Keybindings.

Post by echofire »

The answer might be right in front of me, but I've tried searching for this one and can't seem to get a clear answer anywhere.

What I want to do: I want my Keybinding of Ctrl+F to send "attack" to the COMMAND LINE, not send it directly to the game.

Any help would be appreciated!

Jor'Mox
Posts: 1142
Joined: Wed Apr 03, 2013 2:19 am

Re: Quick question about Keybindings.

Post by Jor'Mox »

There are two functions you will need for that, or at least I assume so. The first is clearCommandLine(), which will delete whatever is currently written on the command line. The second is appendCommandLine("attack"), which will write "attack" exactly as if you had typed the letters yourself.

Post Reply