Open miz file in lua
Hi,
I would like to modify a .miz file while i'm playing it.
Say i have a mission.miz. I flight it and i have lua script inside monitoring what happen.
What i want it is to delete an unit for the mission.miz if my script detected that this unit has been destroy. Then, the next time i play this mission, this unit is not present anymore. It is a kind of dynamic mission.
I know how to do that except how to open, with a lua script, a .miz file, extract the mission file, make changes and save it all.
Well, my question could be : how to modify the mission file in a miz file in lua ?
Thanks