Xbox One Holding LT

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

Xbox One Holding LT

Postby Peter1234 » Wed Sep 09, 2020 7:45 am

Hello everyone,
I am new to this and want to get good, but for now I just need a code. Can anyone please create a code that when you press LT it hold for like 20 seconds, then lets go for 5 seconds and starts over? I want to do more than that, but since I want to learn I need somewhere to start off. With this I at least will get a reference on how it works.

Thank you all for at least looking at the post, have a nice day. :innocent_smile_1:
User avatar
Peter1234
Private
Private
 
Posts: 1
Joined: Wed Sep 09, 2020 7:32 am

Re: Xbox One Holding LT

Postby Mad » Wed Sep 09, 2020 8:18 am

Code: Select all
main {
    if(is_active(BUTTON_8)) {
        combo_run(HoldLT);
    }
}
 
combo HoldLT {
    set_val(BUTTON_8, 100);
    wait(20000);
    set_val(BUTTON_8, 0);
    wait(40);
    wait(5000);
}

There are more examples in the wiki: https://www.consoletuner.com/wiki/index ... _scripting
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 123 guests