Delareon Posted October 20, 2017 Share Posted October 20, 2017 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 More sharing options...
RightStuff Posted October 20, 2017 Share Posted October 20, 2017 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. Link to comment Share on other sites More sharing options...
Davee Posted October 20, 2017 Share Posted October 20, 2017 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 More sharing options...
RightStuff Posted October 20, 2017 Share Posted October 20, 2017 Jup.. must be ',' instead of ';' in CHAIN. As I wrote: Untested - meaning: wrote from memory. Anyway: Thx for the correction! Link to comment Share on other sites More sharing options...
Home Fries Posted October 20, 2017 Share Posted October 20, 2017 (edited) 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 October 20, 2017 by Home Fries -Home Fries My DCS Files and Skins My DCS TARGET Profile for Cougar or Warthog and MFDs F-14B LANTIRN Guide Link to comment Share on other sites More sharing options...
Delareon Posted October 20, 2017 Author Share Posted October 20, 2017 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 More sharing options...
Recommended Posts