I need help with the script ><"

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

I need help with the script ><"

Postby doiz » Sat Nov 30, 2019 8:48 am

Can Edit Hold (TouchPad) Press (L2) ON/FFO
With the addition of colors on/off


Code: Select all
 
 
define speed = 55;
 
main {
    if (get_val(PS4_L2)) {
        combo_run(c_Circle);
    }
}
 
 
combo c_Circle {
    set_val(PS4_CIRCLE, 500);
    wait(speed);
    wait(speed);
}
User avatar
doiz
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Sat May 05, 2018 5:21 am

Re: I need help with the script ><"

Postby Mad » Sun Dec 01, 2019 5:45 pm

Can you describe in detail what exactly needs to be done - what button presses etc.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: I need help with the script ><"

Postby J2Kbr » Mon Dec 02, 2019 11:03 am

He is asking for a toggle with TOUCH+L2:
Code: Select all
define speed = 55;
 
int toggle;
 
main {
    if(get_val(PS4_TOUCH) && event_press(PS4_L2)) {
        toggle = !toggle;
        if(toggle) {
            set_ledx(LED_3, 0);
        } else reset_leds();
    }
    if(toggle) {
        if(get_val(PS4_L2)) {
            combo_run(c_Circle);
        }
    }
}
 
combo c_Circle {
    set_val(PS4_CIRCLE, 500);
    wait(speed);
    wait(speed);
}
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 72 guests