Jump to content

How do you call a function inside a lua script file from the DCS mission editor?


Recommended Posts

Posted

Hi.

 

Very newbie question here ...

 

How do I write a lua script file with a function in it like the one below and then call that function from the DCS mission editor?

 

function myFunction()

-- bunch o' stuff

end

 

This seems like it should be really easy to do but I haven't been able to figure it out. Also, where does the lua script file have to be physically located in your file system? In your Saved Games\DCS\ folder?

 

Any help would be much appreciated. Thx.

Posted

Thanks all. I'm not using MIST at the moment but I read through the documentation and it helped me figure out what to do. I didn't realize that you could load a lua script file at the beginning of a mission and then have all of its functions be globally available. Very helpful. Thanks again.

  • Recently Browsing   0 members

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