need simple scrip

GPC1 script programming for Titan One. Code examples, questions, requests.

need simple scrip

Postby SAGEMODERAUL1 » Wed Mar 18, 2020 10:29 am

hi i would like help creating a scrip where if i press and hold R1 then this combination would play infinitely (dpad up plus L2)+R1 THREE TIMES IN A ROW
where you hold dpad up and L2 at same time and press R1 right after with l1+r1 turning it on or off thank you in advance.
User avatar
SAGEMODERAUL1
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Mar 18, 2020 10:20 am

Re: need simple scrip

Postby J2Kbr » Wed Mar 18, 2020 12:20 pm

Check if this is what you are looking for:
Code: Select all
main {
    // if i press and hold R1 then
    if(get_val(PS4_R1)) {
        // this combination would play infinitely
        combo_run(MyCombo);
        set_val(PS4_R1, 0);
    }
}
 
combo MyCombo {
    //hold dpad up plus L2
    set_val(PS4_UP, 100);
    set_val(PS4_L2, 100);
    wait(50);
    //(dpad up plus L2) + R1
    set_val(PS4_UP, 100);
    set_val(PS4_L2, 100);
    set_val(PS4_R1, 100);
    wait(50);
    wait(50);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: need simple scrip

Postby SAGEMODERAUL1 » Thu Mar 19, 2020 5:02 pm

thank you it worked hope i learn how to write simple scrips like these soon enough.
User avatar
SAGEMODERAUL1
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Mar 18, 2020 10:20 am

Re: need simple scrip

Postby J2Kbr » Thu Mar 19, 2020 7:21 pm

SAGEMODERAUL1 wrote:thank you it worked hope i learn how to write simple scrips like these soon enough.

:smile0517: :smile0517:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 137 guests