Jump to content

Recommended Posts

Posted (edited)

Is it possible to create a new command which appears in the "Adjust controls" dialog as part of a mod? Ideally you can define a callback method in lua that's called when the player presses the assigned key binding.

The only thing I've found so far (in DCS-SRS) is

window:addHotKeyCallback(srsOverlay.config.hotkey, srsOverlay.onHotkey)

That works, but it's tied to a window and the key is hardcoded into the plugin. I'd like to expose it to the player (ideally without needing a window)

 

Edited by Wyverex
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...