| CAPTAIN SIM FORUM | |
|
MSFS2020 >> C-130 Captain >> Sim event/variable/simconnect questions
https://www.captainsim.org/forum/csf.pl?num=1716345450 Message started by retiredflyer73 on May 22nd, 2024 at 2:37am |
|
|
Title: Re: Sim event/variable/simconnect questions Post by Captain Sim on Apr 8th, 2025 at 8:21am 7DR wrote on Apr 4th, 2025 at 4:21pm:
The problem is that not all controls work through only reading/writing the variable. In some cases, when you click, additional actions occur, for example, default events of the sim are triggered, etc. Moreover, some logic can be processed in wasm. Therefore, for example, rotating the Pitch/Turn knobs simply by assigning values to the P17_001_KNB/P17_002_KNB variables does not give the desired result. That is, it does not give the same effect as their full rotation by clicking or by assigned controls in the sim. Of course, you can always change the code in xml, if you understand how. Therefore, I can only advise you to look at q135_302_interior.xml and cs130_interior_common.xml. Search for the elements of interest there, see how they work and try to change them to suit your needs. Quote:
Same story. There is no variable for the position of this switch. Its position depends on the default systems of the sim and is determined by the code: <ANIM_CODE>(A:ELECTRICAL MASTER BATTERY:1, Bool) if{ 1 } els{ (A:EXTERNAL POWER ON:2, Bool) if{ 2 } els{ 0 } }</ANIM_CODE> The click code is even more complicated. I can only name the DC power code of the switch: O05_001_GL3. Search by this name in the above xml and see how it works. |
|
CAPTAIN SIM FORUM » Powered by YaBB 2.6.0! YaBB Forum Software © 2000-2025. All Rights Reserved. |