Hi Peter,
First time on these forums, although I have been reading and searching your posts over the last couple of days. Other than that I'm a real noob (as they say) with FSUIPC + Lua. Have experience with CH scripting, but FSUIPC and Lua just add a new dimension to it all.
Basically I wanted to demonstrate the power of FSUIPC and test a few lines with conditions, as below:
[Keys.PMDG B1900C]
1=76,10,65751,0
2=78,11,66379,0
3=66,11,66239,0
4=83,11,65560,0
5=79,8,66378,0
6=84,11,66240,0
7=76,8,66376,0
8=D0574>3048 66,9,66846,0 I actually used 900m for testing purposes :)
9=D0574<3048 66,8,65584,0
11=D02BC<23040 71,9,66080,0
12=W0366=0 71,8,66079,0
Description:
For those browsing by, lines 8 & 9 set a condition such that the plane must be greater than FL100t to set BAROMETRIC STD PRESSURE(66846) - SHIFT b. Thus, it must be below FL100 to set BAROMETRIC - B.
Line 11 Sets a condition such that the IAS must be undert 180kts IAS (23040/128=180), for GEAR DOWN(66080) - SHIFT g.
Line 12 is from page 20 of the advanced users guide.
Question:
So with regards to the script above, is it possible to replicate keypress commands with thier offset conditions, just using Lua?
For example, relicating Line 11 in Lua code - Gear Down key will Not work until the IAS< 23040
Best Regards
John