Jump to content
The simFlight Network Forums

MartyCZE

new Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Prague

MartyCZE's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. MOVED FROM USER CONTRIBUTIONS SUBFORUM Hello, i already read advanced user manual and a lot of internet forums, but still i can't find solution.. I have two simple LUA scripts: 1) LTS_Taxi.lua LOC = ipc.readLvar("L:AB_TAXI_LT") if(LOC == 1) then ipc.writeLvar("L:AB_TAXI_LT", 0) else ipc.writeLvar("L:AB_TAXI_LT", 1) end ipc.writeLvar("L:SmallOverheadPushButtons", 1) 2) LS button.lua LS = ipc.readLvar("L:AB_MPL_ILS") if(LS == 1) then ipc.writeLvar("L:AB_MPL_ILS", 0) else ipc.writeLvar("L:AB_MPL_ILS", 1) end ipc.writeLvar("L:SmallOverheadPushButtons", 1) Both work standalone without any problem. Is it any way how i can run this two scripts together when i'm using one button? In FSX i set button for first script. Then in FSUIPC.INI file i found : 30=P109,5,CL53:R,0 -{Lua LTS_Taxi}- and manually added next line 31=P109,5,CL53:R,0 -{Lua LS button}- But when i start FSX and push the button - nothing happened. So i close FSX, open FSUIPC.INI file and find: 30=P109,5,CL53:R,0 -{Lua LTS_Taxi}- 30=P109,5,CL53:R,0 -{Lua LTS_Taxi}- Name of my second LUA script was changed to LTS Taxi. What m'i doing wrong and is it possible have two scripts on one button? Thanks lot for your answer in advance and sorry for my english.
×
×
  • 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.