This script is from gpc1

Titan Two general support. Questions, firmware update, feature request.

This script is from gpc1

Postby TrayDay » Fri Sep 04, 2020 4:50 pm

Code: Select all
#include <titanone.gph>
 
main {
set_val(PS4_RY, 0);
set_val(PS4_SQUARE, 0);
if(get_lval(PS4_RY) > 20) {
set_val(PS4_SQUARE, 100);
}
if(get_lval(PS4_SQUARE)) {
set_val(PS4_RY, 100);
}
}


It's it possible to have this script also have after n ms to press the L2 after initiating the above?

I guess what I'm asking is possibly two scripts. The script above with the added L2 being pressed after n ms from holding the button Square above.

and

another script with me after manually holding the RS down after n ms. The L2 will be pressed?

Thanks.
User avatar
TrayDay
First Sergeant
First Sergeant
 
Posts: 60
Joined: Wed Nov 02, 2016 11:12 pm

Re: This script is from gpc1

Postby J2Kbr » Mon Sep 07, 2020 11:57 am

TrayDay wrote:It's it possible to have this script also have after n ms to press the L2 after initiating the above?

Yes, it is possible: :smile0517:
Code: Select all
#include <ps4.gph>
 
main {
    set_val(PS4_RY, 0.0);
    set_val(PS4_SQUARE, 0.0);
    if(get_actual(PS4_RY) > 20.0) {
        set_val(PS4_SQUARE, 100.0);
    }
    if(get_actual(PS4_SQUARE)) {
        if(event_active(PS4_SQUARE)) {
            combo_run(L2PRessAfterMS);
        }
        set_val(PS4_RY, 100.0);
    } else {
        combo_stop(L2PRessAfterMS);
    }
}
 
combo L2PRessAfterMS {
    wait(500); // also have after n ms to press the L2 after initiating
    set_val(PS4_L2, 100.0);
    wait(80);
}
 
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: This script is from gpc1

Postby TrayDay » Thu Sep 10, 2020 7:12 am

J2Kbr wrote:
TrayDay wrote:It's it possible to have this script also have after n ms to press the L2 after initiating the above?

Yes, it is possible: :smile0517:
Code: Select all
#include <ps4.gph>
 
main {
    set_val(PS4_RY, 0.0);
    set_val(PS4_SQUARE, 0.0);
    if(get_actual(PS4_RY) > 20.0) {
        set_val(PS4_SQUARE, 100.0);
    }
    if(get_actual(PS4_SQUARE)) {
        if(event_active(PS4_SQUARE)) {
            combo_run(L2PRessAfterMS);
        }
        set_val(PS4_RY, 100.0);
    } else {
        combo_stop(L2PRessAfterMS);
    }
}
 
combo L2PRessAfterMS {
    wait(500); // also have after n ms to press the L2 after initiating
    set_val(PS4_L2, 100.0);
    wait(80);
}
 


Oh thanks!

I didn't know you replied. Apologies!
thanks again!
User avatar
TrayDay
First Sergeant
First Sergeant
 
Posts: 60
Joined: Wed Nov 02, 2016 11:12 pm


Return to Titan Two Device

Who is online

Users browsing this forum: No registered users and 75 guests