Help with this script if you can thanks

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

Help with this script if you can thanks

Postby jasp90 » Mon Dec 20, 2021 7:15 pm

When press RT and hold


Pull down on the left thumb stick a value I can change
Wait for a time I can change
Then pull down on left thumb stick a value I can change


And do do the each time I press and hold RT

Thank your for you time all way so helpful
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Help with this script if you can thanks

Postby Mad » Mon Dec 20, 2021 10:40 pm

Code: Select all
#include <xb1.gph>
main { if(is_active(XB1_RT)) combo_run(LS); }
 
combo LS {
    set_val(XB1_LY, 50.0); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
    set_val(XB1_LY, 50.0); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 109 guests