Jump to content

Recommended Posts

Posted

It would be great if we could get something in LUA for getting the magnetic declination of a given point on a map, like:

number GetMagneticDeclination(Vec3 point, number year)

 

  • Like 4
  • 3 months later...
Posted

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)

 

  • Thanks 2
  • 2 months later...
Posted
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.

You don't know what you don't know.
Ты не знаешь то, чего не знаешь.

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

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.

 

Posted
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.

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

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