How to obtain in-game time?
I'm still experimenting with scripting stuff for the sim and I've come across a problem I haven't found a solution for: How do I get the in-game time?
I've experimented with Mission.Time but it seems all values are just offsets from the instant when the mission started. There's the concept of "real" time but that also seems to be an offset and unless I can figure out the mission start time it's of no use (at least for what I'm trying to do).
I had an idea that maybe I could read the start time from the main mission file by loading it as a section file but there doesn't seem to be a way to figure out the file name for it.
Has anyone figured any of this out?
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
|