Scripting a timer that enacts a simple "left stick down"

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

Scripting a timer that enacts a simple "left stick down"

Postby HagbardCeline » Thu May 28, 2020 10:05 pm

On Xbox One S, I need a timer that can be adjusted in code and uses a trigger to initiate a countdown. At the 0.00 mark it would move the left stick straight down to 100% as fast as possible.

If someone were able to this I would verbally shower them with praise - here, in written form - and generate 10 minutes of uninterrupted, healing and energizing vibes to provide to you or a person of your choosing via directed thought.
User avatar
HagbardCeline
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Fri Nov 14, 2014 1:32 am

Re: Scripting a timer that enacts a simple "left stick down"

Postby Mad » Thu May 28, 2020 11:32 pm

You can do this with a combo, not sure what you wanted to activate it so i set it to right trigger.
Code: Select all
main {
    if(event_press(XB1_RT)) {
        combo_run(ls_down);
    }
}
 
combo ls_down {
    wait(1000); // wait 1 second before left stick down
    set_val(XB1_LY, 100);
    wait(100); // time to hold left stick down for
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Scripting a timer that enacts a simple "left stick down"

Postby HagbardCeline » Fri May 29, 2020 5:46 am

This appears to work! Thank you very much for your excellence.

Where shall I send your vibes?
User avatar
HagbardCeline
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Fri Nov 14, 2014 1:32 am

Re: Scripting a timer that enacts a simple "left stick down"

Postby Mad » Fri May 29, 2020 6:22 am

HagbardCeline wrote:This appears to work! Thank you very much for your excellence.

Where shall I send your vibes?

No problem, You can send them to Buffy :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Scripting a timer that enacts a simple "left stick down"

Postby HagbardCeline » Wed May 19, 2021 8:28 pm

I did this BTW. And we all think you are still incredibly awesome.
User avatar
HagbardCeline
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Fri Nov 14, 2014 1:32 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 61 guests

cron