Nub needs a script
5 posts
• Page 1 of 1
Nub needs a script
I'm clueless on how to make these so if anyone could help me on this one it would be greatly appreciated.
I just want to click X (2 times) with one stroke. Every time I click X one time will be performed again...
I just want to click X (2 times) with one stroke. Every time I click X one time will be performed again...
-
pingpongchamp - Private First Class
- Posts: 3
- Joined: Fri Jun 05, 2020 5:21 am
Re: Nub needs a script
Welcome.
- Code: Select all
main {
if(event_press(XB1_X)) {
combo_run(X);
}
}
combo X {
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4532
- Joined: Wed May 22, 2019 5:39 am
Re: Nub needs a script
Thank you for the reply!
When I copy pasted it I get an error GPC error: SCRIPT1.gpc(9) : Declaration syntax error 'combo'
0 warnings 1 error
When I copy pasted it I get an error GPC error: SCRIPT1.gpc(9) : Declaration syntax error 'combo'
- Code: Select all
#pragma METAINFO("XXXX", 1, 0, "<NONE>")
{
main {
if(event_press(XB1_X)) {
combo_run(X);
}
}
combo X {
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
}
}
0 warnings 1 error
-
pingpongchamp - Private First Class
- Posts: 3
- Joined: Fri Jun 05, 2020 5:21 am
Re: Nub needs a script
You posted this in the titan one section, so i wrote it for the titan one.
Here it is for the titan two:
Here it is for the titan two:
- Code: Select all
#include <xb1.gph>
main {
if(event_active(XB1_X)) {
combo_run(X);
}
}
combo X {
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
set_val(XB1_X, 100);
wait(60);
set_val(XB1_X, 0);
wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4532
- Joined: Wed May 22, 2019 5:39 am
Re: Nub needs a script
Thanks a lot! works great. sorry I didn't even notice two different forums.
-
pingpongchamp - Private First Class
- Posts: 3
- Joined: Fri Jun 05, 2020 5:21 am
5 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 72 guests