Jump to content
The simFlight Network Forums

Artox67

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Artox67

  1. Hi, I need a little hint how to address the door status (Door 2L) at a 777 PMDG door=ipc.readUB("65DC") --get status of 777 Door The above just read door 1L but I need 2L Thx
  2. Sorry I didn't post the caller here with. I tried your script but still nothing happens. Again no errors. Attached is the whole script announcement.lua
  3. Hi Pete, thx for the response. At the moment this is all of the script. The idea behind is to play a sound e.g. "saets for departure....) if strobe goes to white. It seems to be I get not the value back as expected or as tested in the while 1 do. Any further ideas? Artox P.S. the log shows NO errors at the script
  4. Hi all, I will use a function to check status of strobe lights in PMDG 737 but nothing happens function depart(offset,value) if (ipc.readUB(0x6500) ==2) then --check status of strobe at PMDG 737 sound.play("c:\\mysound\\paxsign.wav") --if status on white play sound end end if I use the same string in a while 1 do I get the result as expected. while 1 do if (ipc.readUB(0x6500) ==0) then ipc.display("0") elseif (ipc.readUB(0x6500) ==1) then ipc.display("1") elseif (ipc.readUB(0x6500) ==2) then ipc.display("2") end ipc.sleep(50) end What's wrong here ? cheers Artox
  5. Hi Pete, thx for the response. What I mean is the script himself works ok as long I'm airborn. Set gs < 230 for a test and the trigger runs. But at the ground if gs is set to gs < 110 the trigger wont fire. Is it possible that the value is not read while on ground? Cheers Artox
  6. Hi all, I've an issue with the following script: alj=0 function alandj(offset,value) aljflag =0 gs = ipc.readStruct(0x02B4, "UD") -- read value gs = (gs * 3600) / (65536 * 1852) -- to knots if (gs < 110 ) and (djz == 1) and (alj == 0) and (aljflag == 0) then --check if Ground Speed less than 110 KTN sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(1000) sound.play("c:\\mysound\\crew7_beforeland.wav") alj=1 aljflag=1 end end If I set (gs < 230) and ..... <-- it works on airborn. If I set the gs as in the script nothing happens after landing. Any ideas??
×
×
  • 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.