TwoLate Posted November 13, 2013 Posted November 13, 2013 I am learning the LUA and scripts. Am I missing something here? I do not see the P-51 in DB. Thanks [sIGPIC][/sIGPIC]
RagnarDa Posted November 15, 2013 Posted November 15, 2013 What DB do you mean? DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
TwoLate Posted November 15, 2013 Author Posted November 15, 2013 What DB do you mean? In Mist 3.2 Like in the Examples of DB. I was thinking I need the P-51 syntax in the DB to use the P-51 in script but I guess the group name would work. [sIGPIC][/sIGPIC]
TwoLate Posted November 15, 2013 Author Posted November 15, 2013 Never mind I think this scripting is way over my head to create. Thanks [sIGPIC][/sIGPIC]
RagnarDa Posted November 20, 2013 Posted November 20, 2013 Well I hope you keep digging at it. :) Maybe I'm missing something or missunderstood your, but there is not any different syntax for any specific aircraft model (like the P-51 or MiG-27). There are however different syntaxes for the different types: units (which are individual units) or groups (a collection of units of the same general type: airplane/helicopter/ground unit/naval; these are flights for aircraft, task forces for naval and platoons/companies/whatever for ground units). Hope this helps. DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
Grimes Posted November 21, 2013 Posted November 21, 2013 The mist DBs are simply an easier way to access or search information already available to scripting engine within the mission file. Each DB is unique based on the contents of a mission file and the example DBs attached to the script are all from the same mission file we used to create the files. Like RagnarDa said each group type is formatted somewhat differently but for the most part they are quite similar. For the sake of example... say you want to run the same script on every P-51D in your mission file. for index, unitData in pairs(mist.DBs.unitsByCat.plane) do if unitData.type == 'P-51D' then myP51DFunction(unitData.unitName) end end 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
Recommended Posts