Created
September 24, 2014 11:13
-
-
Save lotherk/fe6b0d56a1711b37c505 to your computer and use it in GitHub Desktop.
dcs_intercom glovepie script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if pressed(Key.Backslash) { | |
debug = "intercom" | |
var.intercom = true | |
} | |
if released(Key.F12) or released(Key.Backslash) { | |
debug = "close intercom" | |
var.intercom = false | |
var.cmd = false | |
} | |
if(var.intercom) { | |
if said("awacs") { | |
var.cmd = "awacs" | |
debug = "Calling awacs" | |
} | |
if( var.cmd == "awacs" ) { | |
if(said("request picture")) { | |
debug = "Awacs, request picture!" | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F7 = true | |
wait 0.1 | |
Key.F7 = false | |
Key.F5 = true | |
wait 0.1 | |
Key.F5 = false | |
} | |
if(said("request bogey dope")) { | |
debug = "Awacs, request bogey dope!" | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F11 = true | |
wait 0.1 | |
Key.F11 = false | |
Key.F7 = true | |
wait 0.1 | |
Key.F7 = false | |
Key.F4 = true | |
wait 0.1 | |
Key.F4 = false | |
} | |
} | |
if said("one") { | |
Key.F1 = true | |
wait 0.5 | |
Key.F1 = false | |
} | |
if said("two") { | |
Key.F2 = true | |
wait 0.5 | |
Key.F2 = false | |
} | |
if said("three") { | |
Key.F3 = true | |
wait 0.5 | |
Key.F3 = false | |
} | |
if said("four") { | |
Key.F4 = true | |
wait 0.5 | |
Key.F4 = false | |
} | |
if said("five") { | |
Key.F5 = true | |
wait 0.5 | |
Key.F5 = false | |
} | |
if said("six") { | |
Key.F6 = true | |
wait 0.5 | |
Key.F6 = false | |
} | |
if said("seven") { | |
Key.F7 = true | |
wait 0.5 | |
Key.F7 = false | |
} | |
if said("eight") { | |
Key.F8 = true | |
wait 0.5 | |
Key.F8 = false | |
} | |
if said("nine") { | |
Key.F9 = true | |
wait 0.5 | |
Key.F9 = false | |
} | |
if said("ten") { | |
Key.F10 = true | |
wait 0.5 | |
Key.F10 = false | |
} | |
if said("eleven") { | |
Key.F11 = true | |
wait 0.5 | |
Key.F11 = false | |
} | |
if said("twelve") { | |
Key.F12 = true | |
wait 0.5 | |
Key.F12 = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment