Anyone free to make a script thanks

GPC2 script programming for Titan Two. Code examples, questions, requests.

Anyone free to make a script thanks

Postby Jono7110 » Mon Oct 18, 2021 7:34 pm

Left on D-pad to start and finish

RT over and over fast and every 2 second press LB+RB repeat

Thanks so much
User avatar
Jono7110
Command Sergeant Major
Command Sergeant Major
 
Posts: 164
Joined: Sun Nov 08, 2015 12:09 pm

Re: Anyone free to make a script thanks

Postby Mad » Mon Oct 18, 2021 9:11 pm

Code: Select all
#include <xb1.gph>
bool toggle;
main {
    if(event_active(XB1_LEFT)) toggle = !toggle;
    if(toggle) {
        combo_run(RT);
        combo_run(LBRB);
    }
}
combo RT {
    set_val(XB1_RT, 100);
    wait(60);
    set_val(XB1_RT, 0);
    wait(60);
}
combo LBRB {
    set_val(XB1_LB, 100);
    set_val(XB1_RB, 100);
    wait(60);
    set_val(XB1_LB, 0);
    set_val(XB1_RB, 0);
    wait(2000);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 86 guests