Jump to content

LUA & MD scripting questions


JupiterKasparov

Recommended Posts

Hi everyone,

 

I'm doing very well with LUA scripting and MD scripting. This is for my Own Radio Stations mod. However, I ran into some problems, that I cannot figure out, how to do. I cannot find a solution from the other forums, or game scripts. So I need some help.

 

- How to display User Interface text, without using some sort of menu tables. I just want to add it to the screen itself, without hooking into menu or tables. Is it possible?

- How to stop background music, without setting the Sound options/Music volume to zero? Not just the scripted started music, but even the built-in cluster background music, and I want to literally stop every background music, without changing the volume setting.

- How to share variables between LUA and MD script? Not blackboard properties, just plain variables. Eg. if I have "X4_ORS.X4_ORS_Timer.$X4_ORS_IsActiveRadioStation" in an MD script (located within a cue of course), how can I access it from LUA? Is it possible?

- How to register new hotkey slot, and use it from LUA or MD, checking if it's been pressed? I do not want to override an existing hotkey slot, but I want a new one.

 

I appreciate every help.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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