by Gez » Tue Mar 22, 2022 12:07 pm
There's no hold bindings, but there is a double binding, as in if you hit the same button twice in a short time, it can perform a different action. One note about bindings is that some actions have "+" and "-" versions, so they execute the "+" version when the key is pressed and the "-" action when the key is released. See [wiki]CCMDs[/wiki] for an overview of the command system's behind-the-scene. (If you know Quake, it's basically the same deal.)
With some advanced scripting, you could probably use this to detect when a key is held down a certain while, just by timing how long there was between the + event and the - event.
There's no hold bindings, but there is a double binding, as in if you hit the same button twice in a short time, it can perform a different action. One note about bindings is that some actions have "+" and "-" versions, so they execute the "+" version when the key is pressed and the "-" action when the key is released. See [wiki]CCMDs[/wiki] for an overview of the command system's behind-the-scene. (If you know Quake, it's basically the same deal.)
With some advanced scripting, you could probably use this to detect when a key is held down a certain while, just by timing how long there was between the + event and the - event.