NakedSquirrel Posted January 18, 2015 Posted January 18, 2015 (edited) I am just beginning to dabble with lua scripting for DCS. I am wondering if there is a list of variables for in game functions, trigger actions, conditions, ect. I have some experience scripting with ARMA, but DCS is new to me. Lua seems fairly simple, but I am trying to figure out how to reference and interact with the mission. Scripting for ARMA was rather easy to pick up since they have a rather comprehensive dictionary for in game scripts: https://community.bistudio.com/wiki/Category:Scripting_Commands Is there something similar to this for DCS? I know the game has quite a few of them. From playing training missions, I know that the game can tell when you've pressed a button, and trigger actions can even tell if an aircraft is at a certain altitude, velocity, heading, ect. I have read through the "Introduction to Lua" post in the forum, but I couldn't find any reference to it on the post or any of the provided links. Edited January 18, 2015 by NakedSquirrel Modules: A10C, AV8, M2000C, AJS-37, MiG-21, MiG-19, MiG-15, F86F, F5E, F14A/B, F16C, F18C, P51, P47, Spitfire IX, Bf109K, Fw190-D, UH-1, Ka-50, SA342 Gazelle, Mi8, Christian Eagle II, CA, FC3
chromium Posted January 18, 2015 Posted January 18, 2015 (edited) check this: http://wiki.hoggit.us/view/Simulator_Scripting_Engine_Documentation and don't start to code before understanding this (it could save you a LOT of time): http://forums.eagle.ru/showthread.php?t=98616 (check MIST 3.5 post) Edited January 18, 2015 by chromium EDIT: wrong initial link on hoggit wiki Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
vicx Posted January 18, 2015 Posted January 18, 2015 Yo NS. I started dabbling in August with a fairly limited coding background and it has been interesting enough to distract me from flying. Just want to add my comment to Chroms. As great as MIST is; (and it is great) you should probably start with documentation on the scripting environment first and then look at the MIST library after that. The Hoggit Wiki is still the place to go. DCS Mission Scripting Environment Part 1 DCS Mission Scripting Environment Part 2 Once you have this stuff clear then reading through the MIST library is pretty instructive. Now do you want a live LUA console with access to the mission environment? Absolutely. So you will want DCS Witchcraft ^ DCS WC thread should be STICKIED. If you are mission building and scripting WHY would you not want a live console? Cmon MODS. Sticky that one.
Inrideo Posted January 18, 2015 Posted January 18, 2015 Whoa. That DOES sound cool. Definitely sticky material. [sIGPIC][/sIGPIC] T.Flight HOTAS | Custom DIY Cyclic and Collective | AMD FX8350 | 16GB RAM | 4TB HDD | 2x 128 GB SSD | NVidia 1080
NakedSquirrel Posted January 18, 2015 Author Posted January 18, 2015 Thanks for the replies! I didn't see the "Raw Documentation" Part 1 and 2 at the top of the page. :doh: At least I have something to stare at blankly while I try to figure this out! :book: (Witchcraft is sticky in the editor scripts post: http://forums.eagle.ru/showthread.php?t=118935 , but I think it deserves it's own sticky post like MIST) Modules: A10C, AV8, M2000C, AJS-37, MiG-21, MiG-19, MiG-15, F86F, F5E, F14A/B, F16C, F18C, P51, P47, Spitfire IX, Bf109K, Fw190-D, UH-1, Ka-50, SA342 Gazelle, Mi8, Christian Eagle II, CA, FC3
Recommended Posts