Skip to content

How to setup a button to deploy speedbrakes (ctrl-b)

I been trying to setup a joystick button to deploy the spreedbrakes instead of pressing ctrl-b when trying to land.

I have some code but it did not work

ONE BUTTON SCRIPTS DEPLOY FULL SPEEDBRAKES THEN <mod-up> RETRACTS THEM ON RELEASING BUTTON

GIVING FASTER REACTION TIME THAN A TOGGLE SCRIPT WHICH NEEDS 2 SEPERATE PRESSES!

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


<button n="4"> <binding> <command>nasal</command> <script> setprop("/controls/flight/speedbrake", 1);

</script> </binding>

<mod-up> <binding> <command>nasal</command> <script> setprop("/controls/flight/speedbrake", 0); </script>

</binding> </mod-up> </button>


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



<button n="5"> <binding> <command>property-assign</command> <property>/controls/flight/speedbrake</property>

<value type="double">1.0</value> </binding>

<mod-up> <binding> <command>property-assign</command> <property>/controls/flight/speedbrake</property>

<value type="double">0.0</value> </binding> </mod-up> </button>


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


Any suggestion on this code or a better method

Comments


  • <button n=5">

      <desc type="string">Speed Brake</desc>

      <repeatable type="string">false</repeatable>

     <binding>

      <command>property-toggle</command>

      <property>/controls/flight/speedbrake</property>

     </binding>

     <mod-up>

       <binding type="string">

       </binding>

      </mod-up>

     </button> 

  • I use this;


Sign In or Register to comment.