Sorry if this has been answered already but I am woundering if it is possible it have the plane being used in x-plane to either load a script or define what commands are sent. i have spent a few hours searching the forum and the closest i have found links to a file on github but when i click it i get a 404 error. The post states
I think this is what I am looking for but am not sure or how it is implimented as the link is broken.You can have lua callback procedure trigerred by xpl variable change. If you hook it to plane tail number it's called when the plane is loaded.
See the lua script that I use for xplane - https://github.com/me2d13/luamacros/blo ... rc/lmc.lua
The callback is function setPlane(name) and it's registered by:
lmc_on_xpl_var_change('sim/aircraft/view/acf_tailnum', setPlane, 5000)
Many thanks