Abort combo?

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

Re: Abort combo?

Postby Mad » Sun Jan 05, 2020 9:29 am

Code: Select all
    if (event_release(BUTTON_20) && time_active(BUTTON_20)<tap_time) {
        if(!LTOP && !LTOPHOLD) combo_run(LTOP);
        else combo_stop(LTOP);
    }
 
    if (check_active(BUTTON_20,tap_time)) {
        if(!LTOP && !LTOPHOLD) combo_run(LTOPHOLD);
        else combo_stop(LTOPHOLD);
    }
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: Abort combo?

Postby Sightblinder » Sun Jan 05, 2020 10:26 am

Mad wrote:
Code: Select all
    if (event_release(BUTTON_20) && time_active(BUTTON_20)<tap_time) {
        if(!LTOP && !LTOPHOLD) combo_run(LTOP);
        else combo_stop(LTOP);
    }
 
    if (check_active(BUTTON_20,tap_time)) {
        if(!LTOP && !LTOPHOLD) combo_run(LTOPHOLD);
        else combo_stop(LTOPHOLD);
    }


Worked great, i just added all the other combos to that line.
User avatar
Sightblinder
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Jul 31, 2019 6:56 pm

Previous

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 133 guests