[Request] Gadget to bind "C" to capture command

[Request] Gadget to bind "C" to capture command

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

[Request] Gadget to bind "C" to capture command

Post by Forboding Angel »

Basically I want to unbind c to possess and rebind it to the capture command. I know about half of how to do it, but I don't know how to bind to engine commands.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: [Request] Gadget to bind "C" to capture command

Post by lurker »

Spring.SendCommands "bind blah blah"

And there are other ways, too.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: [Request] Gadget to bind "C" to capture command

Post by Google_Frog »

Use uikeys.txt.

There are 2 ways to look at Evo:
1. A game that players install with a 1 click installer. In this case you can package your installer with your own uikeys.txt

2. A 'mod' for the Spring engine which players install with something like SD. In this case rebinding capture would annoy players as the players are likely to play many games.

Anyway if you still want to go ahead with rebinding the answer is lurker's "Spring.SendCommands" along with part of my uikeys.txt.

Code: Select all

unbind              Any+c  controlunit
bind c capture
bind shift+c capture
(Disclaimer, uikeys from 0.73 so c may no longer be bound to controlunit)
Post Reply

Return to “Lua Scripts”