Page 1 of 1

Super easy script help

PostPosted: Thu Jun 03, 2021 11:55 pm
by volta1492
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!!

Re: Super easy script help

PostPosted: Fri Jun 04, 2021 12:49 am
by Mad
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);
}

Re: Super easy script help

PostPosted: Fri Jun 04, 2021 1:57 am
by volta1492
Thanks Mad!! You are awesome!!! It works and does what it needs to do. You are truly a gentleman and a scholar! Thanks again!