Jump to content

Can you write to a file with LUA?


Roadrunner

Recommended Posts

hi gents,

 

small question, is it possible to open a txt file with LUA Script and write to it?

 

the idea would be to write the names of all destroyed units from a mission to that file, so that after the mission i could alter the original mission more easily.

 

if so, it would also be nice to write the coordinates of all surviving units to that file by using a radio call (i.e. F10 others -> save coordinates) when the mission is done.

 

would be quite some workload to give unique names to all units and placing the survivors to the last known location, but at least it would work then.

 

i know, that the info is there and can be read, but can it be writen to a file?

 

thanks & regards,

RR

[sIGPIC][/sIGPIC]

"There's nothing to be gained by second guessing yourself.

You can't remake the past, so look ahead... or risk being left behind."

 

Noli Timere Messorem

"No matter how fast light travels, it finds the darkness has always been there first, and is waiting for it."

Terry Pratchett

Link to comment
Share on other sites

thanks mate, looks like already in the works/done :D

 

regards,

RR

[sIGPIC][/sIGPIC]

"There's nothing to be gained by second guessing yourself.

You can't remake the past, so look ahead... or risk being left behind."

 

Noli Timere Messorem

"No matter how fast light travels, it finds the darkness has always been there first, and is waiting for it."

Terry Pratchett

Link to comment
Share on other sites

  • Recently Browsing   0 members

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