Melchior FRANZ schrieb:


Yes. But I wouldn't even edit that if it isn't necessary. Just create a
file $FG_ROOT/Nasal/local.nas where you collect all local modifications.
That way you have that cleanly separated from the default files. You'd
then write something like this:

  settimer(func {
      var ac = getprop("/sim/aircraft");
...

Hi Melchior,

this works but seems to have an unwished "side-effect" - the controls/gear/gear-down[0] property is not set/changed anymore if one has selected the UFO (it is set/changed if you fly a "normal" aircraft) and the new local.nas file is running.

It seems that the above function blocks the setting of this property but gets the information itself = switching between maxspeed as planned (in my case using the keyboard as the nasal code for toggling the gear-up/down my Saitek X45 uses does not work anymore when the UFO is selected).

And this was the reason I checked with the property browser because the toggling did not work anymore, the joystick button only switched from low to high speed. When I looked at the controls/gear/gear-down[0] property I saw that neither the joystick nor the keyboard changed it when using the UFO and the new local.nas file was running.

Cheers
Georg


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to