Quick question about Keybindings.

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

Quick question about Keybindings.

Post by echofire » Thu Apr 05, 2018 2:15 pm

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: 1093
Joined: Wed Apr 03, 2013 2:19 am

Re: Quick question about Keybindings.

Post by Jor'Mox » Sun Apr 08, 2018 1:48 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest