T-Pap Posted Monday at 01:31 AM Share Posted Monday at 01:31 AM 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 post Share on other sites
Chump Posted Monday at 02:07 PM Share Posted Monday at 02:07 PM You can look into os.execute(), but you will need to remove the sanitize line from MissionScripting.lua. 1 Link to post Share on other sites
Wrench Posted Monday at 07:08 PM Share Posted Monday at 07:08 PM 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 post Share on other sites
Wrench Posted yesterday at 06:36 AM Share Posted yesterday at 06:36 AM 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 post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now