I want to unbind fps mode from c, and bind capture to it. Now I know how to bind c to capture, but I have no idea how to unbind fps mode. Am I missing something simple?
If someone feels like saving me the time of figuring it out, by all means, post the 2 lines of code it should take, if not, please point me in the right direction. I have no idea what fps mode is called in the engine. Capture is just cmd_capture unless I'm mistaken...
Anyway, halp plox!
I want to unbind and rebind
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: I want to unbind and rebind
unbind Any+c controlunit
Re: I want to unbind and rebind
Spring.SendCommands ("unbind Any+c controlunit")
(or SendCommand)
notice no /
I looked at uikeys.txt in hope all possible commands would be listed but at least capture is not listed there. some others are though, so if you want to unbind more stuff like share dialog you could look there.
(or SendCommand)
notice no /
I looked at uikeys.txt in hope all possible commands would be listed but at least capture is not listed there. some others are though, so if you want to unbind more stuff like share dialog you could look there.
Re: I want to unbind and rebind
Uikeys.txt contains only the default binds, so that you know what to unbind if you need something else there.
Re: I want to unbind and rebind
complete list anywhere? did not find one so far.Uikeys.txt contains only the default binds
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: I want to unbind and rebind
Keep in mind that I'm doing this in a gadget. For all intents and purposes uikeys does not exist in this instance.
Re: I want to unbind and rebind
unsynched part of gadget...
but i meant uikeys.txt as reference/docu.
but i meant uikeys.txt as reference/docu.
Re: I want to unbind and rebind
uikeys.txt mentions something about
/keysave : save current bindings to 'uikeys.tmp' (NOTE: 'tmp' vs. 'txt')
/keysave : save current bindings to 'uikeys.tmp' (NOTE: 'tmp' vs. 'txt')
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: I want to unbind and rebind
Code: Select all
Spring.SendCommands({
"unbindkeyset c",
})
Spring.SendCommands("bind c capture")