Jump to content

Magnetic Declination scripting function


Chump

Recommended Posts

  • 3 months later...
  • 2 months later...
On 12/29/2022 at 4:59 PM, Chump said:

ED did include this functionality with one of the last releases:

local magvar = require("magvar")
magvar.init(month, year)
magvar.get_mag_decl(lat, lon)

 

In what environment(export, mission) it available? AFAIK, in mission scripting we haven't `require` function.

By the way, thanks for finding. It is useful for mods.

Верните короновирус в качестве главной проблемы, спать в маске буду, обещаю.

Скрытый текст

Hardware: AMD 5900x, 64Gb RAM@3200MHz, NVidia RTX3070 8Gb, Monitor 3440x1440(21:9), Samsung 980pro 1Tb NVMe SSD, VKB Gunfighter+MCGU, Virpil Throttle CM3, VKB T-Rudder, TrackIR.

 

Link to comment
Share on other sites

8 hours ago, Blackfyre said:

In what environment(export, mission) it available? AFAIK, in mission scripting we haven't `require` function.

You would need to desanitize the DCS scripting environment to include this module.

Link to comment
Share on other sites

  • 11 months later...
  • Recently Browsing   0 members

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