Page 1 of 1

hold button to activate combo with titan two?

PostPosted: Sat Jul 13, 2019 4:36 am
by frex15
i need help i cant find how setup this!!

hold button 2 sec to active combo_run
double tap buttun to active combo_run2

i have found script for this but it is not working on titan two and gpc
thx trying help me!

Re: hold button to activate combo with titan two?

PostPosted: Sat Jul 13, 2019 5:18 am
by Mad
Code: Select all
main {
  // Hold for 2 seconds
  if (is_active(BUTTON_5) && time_active(BUTTON_5) == 2000) {
    combo_run(Example);
  }
 
  // Double tap
  if (event_active(BUTTON_5) && time_release(BUTTON_5) < 160) {
    combo_run(Example2);
  }
}
 
combo Example {
 
}
 
combo Example2 {
 
}