P3D Lights Eents and Variables

Help creating logic scripts for Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
fatcharlieuk
Posts: 47
Joined: Tue Dec 22, 2020 7:42 am

P3D Lights Eents and Variables

#1 Post by fatcharlieuk »

Here we go again!

I am trying to expand my current hardware panel setup so I can use it with P3D as well as X-Plane. It works fine in X-Plane but by god it's hard to work with P3D!

I've set up a test instrument like this:

Code: Select all



--fsx_event("TAXI_LIGHTS_ON")
--fsx_event("TAXI_LIGHTS_SET", 1)

function test_callback(value)
print(value)
end

fsx_variable_subscribe("LIGHT ON STATES", "MASK", test_callback)


The variable subscribe works fine - I get a value returned which reflects the stae of the lights as per the table given:

Bit mask:
0x0001: Nav
0x0002: Beacon
0x0004: Landing
0x0008: Taxi
0x0010: Strobe
0x0020: Panel
0x0040: Recognition
0x0080: Wing
0x0100: Logo
0x0200: Cabin

So if i trun on the Landing Lights it returns a '4', if i add the beacon it returns a '6'.

But the Events have no effect. if i rem-out everything else and just start the instrument with the following slingle line, i would expect the taxi lights to come on. But they dont! I realise there's no trigger here other than running the instrument- but i should at least get a one-shot event?

Code: Select all

fsx_event("TAXI_LIGHTS_ON")
So, is it P3D being difficult or am I missing something obvious?

Cheers,

Roger.

Shimokuta
Posts: 113
Joined: Wed Feb 03, 2021 12:52 pm

Re: P3D Lights Eents and Variables

#2 Post by Shimokuta »

Same issue here...
did you ever solved this?

Post Reply