Bahnzo Posted November 23, 2016 Posted November 23, 2016 I've tried a couple different ways, but the mission file doesn't seem to be sure to contain the info (maybe it does, I'm not looking for it correctly?) and the mission description leaves the inclusion of the JTAC's up to the creator so that's no good. So I thought, surely it's available in the radio right? So in JTAC.lua, there's a function getJTACList(). I'm not versed in lua scripting, but I understand programming, so I figured it would be simple to have it written to a file. But I'm not having any luck. What I've tried: local file = io.open("JTAC.txt", "w") file:write(getJTACList) <-- this returns a list of JTAC's file:flush() file:close() which is what I got from a search on lua scripting i/o, but it doesn't seem to work. What happens is this renders the entire radio unusable, so I'm guessing what I thought would be simple, simply is not. So, anyone willing to show me a way I could get a list of JTAC's and write it to a file (and their radio freq would be cool also, although not as important to me).
razo+r Posted November 24, 2016 Posted November 24, 2016 You can also get a JTAC with setting up the correct orders in the advanced waypoint option
Bahnzo Posted November 29, 2016 Author Posted November 29, 2016 Nothing? Is there anyone who understands the lua files and where the information about the jtac's are stored?
Recommended Posts