CougarFFW04 Posted February 27, 2020 Posted February 27, 2020 Hi everybody A very basic and probably stupid Lua question within DCS script. What is the procedure to write or read "whaterver" let say on my "G:/data.file" Never did that with Lua language and what I tried from internet (for exemple local file = io.open(path, "w") and so on ) doesn't work... Thanks
Chump Posted February 27, 2020 Posted February 27, 2020 You will need to unsanitize (comment out) the lfs and/or io classes in MissionScripting.lua to use the functionality.
CougarFFW04 Posted February 27, 2020 Author Posted February 27, 2020 (edited) Hi, You will need to unsanitize (comment out) the lfs and/or io classes in MissionScripting.lua to use the functionality. And wher can I find this MissionScripting.lua Thanks EDit : got it. Thanks Edited February 27, 2020 by CougarFFW04
Chump Posted February 28, 2020 Posted February 28, 2020 For anyone looking for this file: <DCS>\Scripts\MissionScripting.lua Simply comment out the classes that you want to work with and they will be available for scripting.
Recommended Posts