karpiyon Posted March 8, 2021 Posted March 8, 2021 Hi, I know how to export various variable in export.lua but I can't get the actual sim time. How do I get the current mission/sim time? I use the F16. I can export the analog clock dials position it will show my the time in 12hours format which will not distinguish between 6am and 6pm e.g. Thanks
Bailey Posted March 8, 2021 Posted March 8, 2021 (edited) DCS.getModelTime() -> number returns current DCS simulation time in seconds. DCS.getRealTime() -> number returns current DCS real time in seconds relative to the DCS start time. Export.LoGetMissionStartTime Are these what you were looking for? (\DCS World OpenBeta\API\DCS_ControlAPI.html) Edited March 8, 2021 by Bailey DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library | Kiowa Integrated Overlays
karpiyon Posted March 8, 2021 Author Posted March 8, 2021 How do you access DCS in export.lua? DCS.getModelTime() DCS.getRealTime()
Bailey Posted March 8, 2021 Posted March 8, 2021 Sorry (late night). You should use this: https://wiki.hoggitworld.com/view/DCS_func_getRealTime Add the start time to that to get the current time as shown on the InfoBar while ingame. DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library | Kiowa Integrated Overlays
Recommended Posts