binds
The user's binds from Configs > Binds, read-only except for enabling.
Functions
binds.list
binds.list() -> table[]Every bind with its mode, key and state.
Returns bind tables (see fields)
binds.is_active
binds.is_active(name) -> boolean| Name | Type | Description |
|---|---|---|
| name | string | Exact bind name. |
Whether a bind is in effect now.
Returns true while forcing its values
false for unknown names; duplicates match the first.
binds.set_enabled
binds.set_enabled(name, on) -> boolean| Name | Type |
|---|---|
| name | string |
| on | boolean |
Enables or disables a bind.
Returns true if the bind was found
Fields
binds.list() entry
| Name | Type | Description |
|---|---|---|
| name | string | |
| mode | string | "hold", "toggle", "double_click", "weapon" or "condition". |
| key | string | Key name; "" if none. |
| enabled | boolean | Bind is switched on. |
| active | boolean | Bind is forcing its values now. |
| targets | string[] | Values it sets, in features.* names. |