Short combo script help
4 posts
• Page 1 of 1
Short combo script help
Hi, I hate to request a new script for something like this, but I haven't tried making a script in like 2-3 years, and also got a new PC and dont have any previous scripts to go off of.
Can someone help with a script that would let me press a button to automatically run a short combo
For example: I manually press [Left D-Pad] and the script automatically presses [LT] -> 30 ms -> [RB]
Any help would be greatly appreciated!
Can someone help with a script that would let me press a button to automatically run a short combo
For example: I manually press [Left D-Pad] and the script automatically presses [LT] -> 30 ms -> [RB]
Any help would be greatly appreciated!
-
Jazzin - Staff Sergeant
- Posts: 11
- Joined: Wed Jul 16, 2014 8:35 pm
Re: Short combo script help
- Code: Select all
#include <xb1.gph>
main {
if(event_active(XB1_LEFT)) {
combo_run(myCombo);
}
}
combo myCombo {
set_val(XB1_LT, 100);
wait(30);
set_val(XB1_RB, 100);
wait(30);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Short combo script help
Mad wrote:
- Code: Select all
#include <xb1.gph>
main {
if(event_active(XB1_LEFT)) {
combo_run(myCombo);
}
}
combo myCombo {
set_val(XB1_LT, 100);
wait(30);
set_val(XB1_RB, 100);
wait(30);
}
Wow, thank you for the quick reply and the help.
I realized after trying out the script that LT should be held down instead of just pressed. I guess it doesn't need to be held too long, like 150 ms.
Your help is very appreciated
-
Jazzin - Staff Sergeant
- Posts: 11
- Joined: Wed Jul 16, 2014 8:35 pm
Re: Short combo script help
- Code: Select all
#include <xb1.gph>
main {
if(event_active(XB1_LEFT)) {
combo_run(myCombo);
}
}
combo myCombo {
set_val(XB1_LT, 100);
wait(150);
wait(30);
set_val(XB1_RB, 100);
wait(30);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
4 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 135 guests