Super easy script help

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

Super easy script help

Postby volta1492 » Thu Jun 03, 2021 11:55 pm

Hi! Sorry I suck at coding and its been a while since I messed with my Titan. All I need is (for the Xbox One controller) a continuous somewhat rapid fire of the A button. Pretty much every 0.4 seconds. Thanks for any help!!
User avatar
volta1492
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Thu Mar 26, 2020 9:40 pm

Re: Super easy script help

Postby Mad » Fri Jun 04, 2021 12:49 am

Dpad down to toggle on/off
Code: Select all
int toggle;
 
main {
    if(event_press(XB1_DOWN)) toggle = !toggle;
    if(toggle) combo_run(press_A);
}
 
combo press_A {
    set_val(XB1_A, 100);
    wait(60);
    set_val(XB1_A, 0);
    wait(400);
}
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Major General
Major General
 
Posts: 3567
Joined: Wed May 22, 2019 5:39 am

Re: Super easy script help

Postby volta1492 » Fri Jun 04, 2021 1:57 am

Thanks Mad!! You are awesome!!! It works and does what it needs to do. You are truly a gentleman and a scholar! Thanks again!
User avatar
volta1492
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Thu Mar 26, 2020 9:40 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: Google [Bot] and 11 guests