Jump to content

Recommended Posts

Posted

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).

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...