Jump to content

Recommended Posts

Posted
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]

Posted

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.

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

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