i need your help !

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

i need your help !

Postby maithuynhung032 » Sat Jul 21, 2018 3:48 am

i wanted to do a combo for PS4 with PS4 controller.

inputs would be Triangle, square, circle, down, up, R2, triangle, square circle, down, up, R2.

very fast.
needs to be repeated maybe 100 times.

could someone give an example of how to do this please?
maithuynhung032
Private
Private
 
Posts: 1
Joined: Sat Jul 21, 2018 3:44 am

Re: i need your help !

Postby J2Kbr » Sat Jul 21, 2018 8:42 am

Welcome to our forums.

Press the PS4 touch-click to start the combo:

Code: Select all
int toggle;
 
main {
    if(event_press(PS4_TOUCH)) {
        toggle = !toggle;
    }
    if(toggle) {
        combo_run(MyCombo);
    }
}
 
combo MyCombo {
    // Triangle
    set_val(PS4_TRIANGLE, 100);
    wait(50); wait(50);
    // square
    set_val(PS4_SQUARE, 100);
    wait(50); wait(50);
    // circle
    set_val(PS4_CIRCLE, 100);
    wait(50); wait(50);
    // down
    set_val(PS4_DOWN, 100);
    wait(50); wait(50);
    // up
    set_val(PS4_UP, 100);
    wait(50); wait(50);
    // R2
    set_val(PS4_R2, 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


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 61 guests