Quick question about Keybindings.

Post Reply
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!

Posts: 1099
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: No registered users and 2 guests