Chump Posted September 8, 2022 Posted September 8, 2022 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) 4
Chump Posted December 29, 2022 Author Posted December 29, 2022 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) 2
Blackfyre Posted March 28, 2023 Posted March 28, 2023 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.
Chump Posted March 28, 2023 Author Posted March 28, 2023 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.
TEMPEST.114 Posted March 22, 2024 Posted March 22, 2024 On 3/28/2023 at 8:01 PM, Chump said: You would need to desanitize the DCS scripting environment to include this module. Well that's just stupid... /facepalm
Recommended Posts