Jump to content
The simFlight Network Forums

texfly

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by texfly

  1. Hello,

    I might be missing something but I can't make a simple script working with LUA.

    When I push a button on the GFP8 I want the pushback to start and the LED on.

    Button #8 and LED #8. In FSUIPC I see Joystick #101 and button #7 during the assignment, so I used those numbers for my script. When I push the button nothing happens!

    Any idea? The script is below...

    Thanks!

    ------------------------------------------------------

    function PushBack(offset, value)

    model = GFP8

    unit = 101

    id = 7

    gfd.SetBright(model, unit, 15)

    if value == 0 then

    gfd.SetLight(model, unit, id)

    else

    gfd.ClearLight(model, unit, id)

    end

    end

    function SetPushBack(model, unit)

    gfd.GetValues(model, unit)

    if gfd.TestButton(7) then

    ipc.writeUB("31F4",0)

    else

    ipc.writeUB("31F4",3)

    end

    end

    event.offset("31F0", "UB", "PushBack")

    event.gfd(GFP8, 101, "SetPushBack")

  2. Volker,

    I built a cockpit (see here www.createandsolve.com) and I'm using FS Commander as GPS. It works great. I have added buttons to control directly some functions (like zoom-in/out) but I would like to control. with similar direct key combinations, stuff like:

    a) Show/hide flight plan

    B) Airport info

    c) Map/unmap airplane

    d) Info about destnation airport

    e) plus a few more...

    I know I can use several key combinations to get to almost all of this items but they are not user-friendly like the ones you already programmed in the software.

    Can this be done?

    Thanks!

    Alex

  3. Hello,

    Simple question: how/where do I see the distance between my current position and the final destination?

    Almost all the times I get the question from ATC to communicate the position and I can't seem to find the update distance form the final destination airport...

    I couldn't flight without FS Commander!

    Thanks!

    Alex

×
×
  • 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.