X-plane to Air Manager

Help creating logic scripts for Air Manager Instruments

Moderators: russ, Ralph

Post Reply
Message
Author
Gixxar
Posts: 63
Joined: Mon Oct 03, 2016 9:55 pm

X-plane to Air Manager

#1 Post by Gixxar »

Is it possible for X-plane to send a command back to Air Manager? E.G click a button in VR in X-Plane for it then to be received as if a button or hardware button had been pressed in the LUA script.

Thanks

SimPassion
Posts: 5339
Joined: Thu Jul 27, 2017 12:22 am

Re: X-plane to Air Manager

#2 Post by SimPassion »

Nothing simple than this,
it's just a matter of reading a dataref, then set the switch or button accordingly in AM
for a switch there's a statement like in "switch_set_position"
http://siminnovations.com/wiki/index.ph ... t_position
other than this for a button we have to change the current image displayed if needed

Gilles

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: X-plane to Air Manager

#3 Post by Sling »

You can also subscribe to commands using the
xpl_command_subscribe() function.

Tony

Post Reply