Jump to content

Target Script for Autopilot Button (Warthog)


Recommended Posts

Hey,

 

im trying to figure out Target Scripts. So far i have allready some nice results, but currently i have a problem i couldnt solve with manual and the internet.

 

The problem is the Autopilot Engage/Disengage Button on the Warthog Throttle.

I want them to just work like the L/G Warn Button, but it seems like he has 2 Events.

APENG and APDIS.

 

Currently i want to use it in Falcon BMS to Emergency Jettison external Stores.

But for that i need to press that Button 3 Seconds. So PULSE will not work.

 

Any Tips/Ideas?

Link to comment
Share on other sites

Untested Code - assuming CTRL-J is 'Jettison Stores':

MapKey(&Throttle, APENG, CHAIN(DOWN+L_CTL+'j';D(3000);UP+L_CTL+'j')); 

The basic idea is to split the command in a 'down' and 'up' component and join them with a delay of 3 secs.

 

Interesting, I use comma instead of semi-colon in the CHAIN sequence.

Link to comment
Share on other sites

The way RightStuff coded it works no matter how long you press the Autopilot button (i.e. tap the button it will still hold the key for 3 seconds). If this is what you want, it's good code. However, if you want to actually hold the Autopilot button for 3 seconds to jettison stores, you can simply do this:

MapKey(&Throttle, APENG, L_CTL+'j');

 

There are plenty of ways to skin the cat in TARGET; these are just 2.

 

EDIT: Don't worry about APENG vs. APDIS. They're the same button. I have a feeling it is just a mistake that was left in TARGET because it doesn't hurt anything and allows for backward compatibility.


Edited by Home Fries
Link to comment
Share on other sites

This was something i tried.

It seems like the Buttons will be held with this command and never released.

 

MapKey(&Throttle, APENG, L_CTL+'j');

 

 

I didnt know how to chain commands, so thanks. I will use this if i cant get the Button to work as it should. But i would prefer to hold the button 3 secs on my own that i can disrupt this when needed.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...