kontiuka Posted October 2, 2013 Posted October 2, 2013 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.
ENO Posted October 2, 2013 Posted October 2, 2013 Take a look in here: http://forums.eagle.ru/showthread.php?t=114676 We're talking about some "noob" stuff there as well. I'm trying to pick up some basics from the experts. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Wrecking Crew Posted October 2, 2013 Posted October 2, 2013 A simple test mission of mine is in this thread... http://forums.eagle.ru/showthread.php?t=112179 I had the same questions when I started using lua scripts. WC Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Grimes Posted October 2, 2013 Posted October 2, 2013 The following wiki page should help you out. http://wiki.hoggit.us/view/Scripting_Engine_Introduction The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
kontiuka Posted October 3, 2013 Author Posted October 3, 2013 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.
Recommended Posts