TOViper Posted January 22, 2023 Posted January 22, 2023 OB 2.8.1.34.667.2 SP (Mission Editor) AJS-37 When I try to save the current magnetic heading ("BASE_SENSOR_MAG_HEADING") via the trigger action "X: COCKPIT PARAM SAVE AS" to a global variable called "heading_start", the value seems not to be saved. See mission file: Tester.miz Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G 4.4 GHz | NVIDIA RTX 3080 10GB | 32 GB 3.2 GHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TRP | Rift CV1
Rudel_chw Posted January 22, 2023 Posted January 22, 2023 1 hour ago, TOViper said: the value seems not to be saved I have not used that trigger action, but the manual says "X: COCKPIT PARAM SAVE AS (requires console) – save the current value of the specified cockpit parameter as a new parameter" ... it does not save it to a variable. For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
TOViper Posted January 22, 2023 Author Posted January 22, 2023 (edited) Hey Rudel! Thanks for answering, but how can I then use this parameter? Only in a trigger condition like "COCKPIT PARAM IS EQUAL TO ANOTHER"? What I in fact need is the current magnetic heading as number ... nothing more and nothing less. Sounds easy, but currently I didn't find any solution for this easy task. Edited January 22, 2023 by TOViper Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G 4.4 GHz | NVIDIA RTX 3080 10GB | 32 GB 3.2 GHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TRP | Rift CV1
Solution Rudel_chw Posted January 22, 2023 Solution Posted January 22, 2023 1 hour ago, TOViper said: Thanks for answering, but how can I then use this parameter? Only in a trigger condition like "COCKPIT PARAM IS EQUAL TO ANOTHER"? Correct, it's purpose is to save a parameter at a certain point in time, and then use it on parameter comparisons later on. 1 hour ago, TOViper said: What I in fact need is the current magnetic heading as number ... nothing more and nothing less. Sounds easy, but currently I didn't find any solution for this easy task. You need a LUA script, that will take the current heading and save it on a flag value ... I'm sure someone versed in Lua will provide the answer, for now it is out of my realm For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
TOViper Posted January 22, 2023 Author Posted January 22, 2023 (edited) Yep, it seems there is no way around MIST function: mist.getHeading(unit, rawHeading) Edited January 22, 2023 by TOViper 1 Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G 4.4 GHz | NVIDIA RTX 3080 10GB | 32 GB 3.2 GHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TRP | Rift CV1
Recommended Posts