How can I trigger this combo via keyboard input?
3 posts
• Page 1 of 1
How can I trigger this combo via keyboard input?
I currently have this combo running when Button 8 (L3) is held. I'd love it if I could plug a footpedal into my Titan Two and then use that footpedal (key is Numpad1) to run this combo instead.
Is there a way I can add keyboard support to this script so that this is possible? Thanks for any help
Is there a way I can add keyboard support to this script so that this is possible? Thanks for any help
- Code: Select all
#pragma METAINFO("YY", 1, 0, "<author_name>")
main {
if (get_val(8)) {
if (!get_val(4) && !get_val(7)) combo_run(YY);
}
}
combo YY {
set_val(13, 100.0);
wait(89);
set_val(13, 0.0);
wait(39);
set_val(13, 100.0);
wait(89);
set_val(13, 0.0);
wait(39);
}
-
TheBruhhh - First Sergeant
- Posts: 65
- Joined: Sun Nov 24, 2019 1:28 pm
Re: How can I trigger this combo via keyboard input?
untested code:
add to the top: #include <keyboard.gph>
then add
add to the top: #include <keyboard.gph>
then add
- Code: Select all
if (key_status(KEY_PAD1)) combo_run(YY);
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: How can I trigger this combo via keyboard input?
Awesome, tested and working, thanks boss!
-
TheBruhhh - First Sergeant
- Posts: 65
- Joined: Sun Nov 24, 2019 1:28 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 116 guests