Caldera Posted October 12, 2021 Posted October 12, 2021 Hey All, Can you do it? Example: Mission A --> Sneaky hostile blew up my base --> Flag 1 is true Mission B --> Flag 1 is true --> Take off from another base Mission B --> Flag 1 is false --> Take off the same base Thanks in advance, Caldera
AKA_Clutter Posted October 12, 2021 Posted October 12, 2021 You should be able to do something like that as Buddy Spike's Blue Flag server do this from mission to mission. I don't have a clue as how to do it, but my guess is you Mission A would write the values to a file, and Mission B would read that file. Good luck. ---------------- AKA_Clutter Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080 FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.
cfrag Posted October 12, 2021 Posted October 12, 2021 It can't be done entirely within ME yet, but you can add this functionality provided you remove DCS's mission restrictions on the hosting PC to write and read arbitrary files (currently, Missions can't write to file as a sandbox measure, a good thing but too restrictive right now. I wish missions could write a single string to their sandbox) by removing the 'sanitize' directive for the "io" and "lfs" modules. This must be done by the person owning the server (or PC the mission runs on) and can't be activated from within the mission nor DCS settings. write code to access a common file across these missions and transfer/retrieve the values to the flags you want to use. Tangentially, this is also how you can implement persistence for your missions. alternatively, you could use network code to access a common server where you write, and retrieve, these flags. That would require you to set up such a server first.
Recommended Posts