Difference between revisions of "MIST writeTypes"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.debug.writeTypes| |vNum = Mist 4.5 |desc= Writes a table of data from your mission file. Contains entries for unit type names, countries, l...") |
(No difference)
|
Revision as of 10:41, 7 July 2021
mist.debug.writeTypes
| Added with: Mist 4.5 |
| Description |
| Writes a table of data from your mission file. Contains entries for unit type names, countries, livery names, and CLSIDs. |
| Syntax |
| nothing mist.debug.writeTypes(string fileName ) |
| Valid Input Values: |
| fileName: |
| Return value: |
| nothing |
| Return example: |
| Usage Examples: |
The following would output the data to the pass filename.
mist.debug.writeTypes('myMission.lua')
|
| Notes: |
| For this debug function you must (temporarily!) unprotect the Lua environment and enable the io and lfs libraries. You do this by commenting out the sanitizeModule calls in <DCS main directory>/Scripts/MissionScripting.lua. Just be sure to re-protect yourself later when you run missions from untrusted sources. |
| Related Functions |
| writeData, dumpDBs, dump_G, writeGroup, writeTypes, changeSetting |
