T-Pap Posted February 22, 2021 Share Posted February 22, 2021 Hey all , Just playing around with an idea and was wondering if there is any type of script where an action within a mission can will trigger a windows process to run which is no relevant to DCS . A simple example would be when a unit is destroyed a batch file is run . Thank you ! Link to comment Share on other sites More sharing options...
Chump Posted February 22, 2021 Share Posted February 22, 2021 You can look into os.execute(), but you will need to remove the sanitize line from MissionScripting.lua. 1 Link to comment Share on other sites More sharing options...
Wrench Posted February 22, 2021 Share Posted February 22, 2021 Failing that, you can have the script write to a temporary file, and have a batch file running through a loop to read it. That's how I have my server auto restart system working. This also required you to desanitize, but it's another option. 1 Carrier Script. Link to comment Share on other sites More sharing options...
Wrench Posted February 23, 2021 Share Posted February 23, 2021 I also saw other references to os.execute, so I belive it does in fact work. Note that if you start a process it'll come up "on top" of DCS. Carrier Script. Link to comment Share on other sites More sharing options...
Recommended Posts