Chump Posted September 8, 2022 Share 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 Link to comment Share on other sites More sharing options...
Chump Posted December 29, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Blackfyre Posted March 28, 2023 Share 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. Верните короновирус в качестве главной проблемы, спать в маске буду, обещаю. Скрытый текст 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 More sharing options...
Chump Posted March 28, 2023 Author Share 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. Link to comment Share on other sites More sharing options...
Elphaba Posted March 22 Share Posted March 22 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 Link to comment Share on other sites More sharing options...
Recommended Posts