Jump to content

Recommended Posts

Posted

Hi,

 

Hope someone can point me in the right direction. I've dumped _G without any obvious candidates. I'm trying to find out if VR is enabled from within DCS so that I can automatically disable my FTNoIR module. It's obviously defined in options.lua, but I don't know how to expose it.

 

Thanks in advance.

BlueFinBima

Latest Helios Virtual Cockpit Team version of Helios can be found on Github

BlueFinBima Helios YouTube

Posted

I was hoping to avoid running the options.lua, so still hoping someone will come up with a better answer, but I've temporarily gone for

 

log.write('USERMOD',log.INFO," Loading options from - " .. lfs.writedir() .. "config\\options.lua")
dofile(lfs.writedir() .. "config\\options.lua")
gDCS_VR = options.VR.enable
log.write('USERMOD',log.INFO," VR option = " .. tostring(options.VR.enable))

BlueFinBima

Latest Helios Virtual Cockpit Team version of Helios can be found on Github

BlueFinBima Helios YouTube

  • Recently Browsing   0 members

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