Grumpy Old Man 3548 Posted February 21, 2014 Hey folks, is it currently possible to have a script check if a specific file is present in the mission folder? Cheers Share this post Link to post Share on other sites
KC Grimes 79 Posted February 23, 2014 I don't understand why you would want to do this, since technically you could have whatever the heck you wanted in the mission folder and not have it executed. I suggest you put whatever files you would potentially use in the mission folder, and then choose to execute them or not via script, rather than removing them. But even that you couldn't do without editing the script to take out the execution. Wot. Share this post Link to post Share on other sites
Grumpy Old Man 3548 Posted February 24, 2014 Oh well I was probably overcomplicating things a bit. ;) Cheers Share this post Link to post Share on other sites
brians200 51 Posted February 24, 2014 You could try to preprocess the file inside of a try/catch block. If the file doesn't exist, it should jump to the catch block. https://community.bistudio.com/wiki/Exception_handling However, I think I am going to agree with Grimes. Share this post Link to post Share on other sites