Jump to content

Trigger action "X: COCKPIT PARAM SAVE AS" does not save


TOViper
Go to solution Solved by Rudel_chw,

Recommended Posts

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 | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

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 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

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 by TOViper

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

  • Solution
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 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

Yep, it seems there is no way around MIST function:

mist.getHeading(unit, rawHeading)

 


Edited by TOViper
  • Like 1

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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