Jump to content
The simFlight Network Forums

Pimas

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    PT

Pimas's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everyone. This topic is old, but after an extended search, I can't find a perfect solution to control the light switches individualy. So, after a few code testing, I got it! First you need to get ALL the switches status, split the retrieved data into vars, change whatever you need, and finaly write them back. Example: -- Read Light switch status navi, bcon, land, txii, strb, inst, recg, wing, logo, cabn = ipc.readStruct(0x0D0C, "10UB") -- Change Light switch On/Off navi = 1 logo = 1 -- Write Light switch status ipc.writeStruct(0x0D0C, "10UB", navi, bcon, land, txii, strb, inst, recg, wing, logo, cabn) I hope this can help you.
×
×
  • 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.