Jump to content
The simFlight Network Forums

litlle help (example) for the new [AUTO] function...


Recommended Posts

Hello,

I need a little help for the new [AUTO] function and generally with the LUA thingie...

I'm sure you have documented this somewhere, but I need some direct advice with an example to get this in my mind.

situation:

I have two Lua Variables for the PMDG MD-11

L:pmdg_hide_yoke=0

(hides the pilots yoke when set to "1")

L:HIDE_OVERHEAD_SWITCHES_var=0

(hides the overhead switches to gain some frames when set to "1")

Now, I want to get this two variables into the [AUTO] function to have the yokes hidden and the overhead switches, too.

I have made a LUA file named MD11init.lua

Inside this file theres the entry:

ipc.writeLvar(pmdg_hide_yoke,1)

(thats the part where the first big error is, I think)

and in the FSUIPV4.ini theres the entry

[Auto.PMDG MD-11]

1=MD11init

(and there's the second error, I think)

It's obvisiuous that I have no clue what to do and how to handle the LVars with the [AUTO] function or how to get them into a LUA file....

:?: :?: :?: :?:

So, please be so kind and help me...!

thank you very much as ever!

guenter

Link to comment
Share on other sites

oh, sometimes there have to be just a little dinner between question and answer:

I made it!!!! I'm so proud (don't lough!)

[Auto.PMDG MD-11]

1=Lua MD11init

and the file contains

ipc.writeLvar("L:pmdg_hide_yoke", 1)

coooooool ;-)

Thanks for the new function!!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.